summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-02-03 14:43:04 +0000
committermarkm <markm@FreeBSD.org>2002-02-03 14:43:04 +0000
commitaa05461c142ad4066a0a15602416ba40936a61c9 (patch)
tree7d38defe5cb3081da17d7b6c01870764bc1cc69a /bin/ps/ps.h
parent792e9550ac5bdc8f338e9d340053549aa3aae463 (diff)
downloadFreeBSD-src-aa05461c142ad4066a0a15602416ba40936a61c9.zip
FreeBSD-src-aa05461c142ad4066a0a15602416ba40936a61c9.tar.gz
WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extra
cleanup courtesy of automatic checking (lint).
Diffstat (limited to 'bin/ps/ps.h')
-rw-r--r--bin/ps/ps.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ps/ps.h b/bin/ps/ps.h
index 723c21e..ae5caa0 100644
--- a/bin/ps/ps.h
+++ b/bin/ps/ps.h
@@ -51,9 +51,9 @@ typedef struct varent {
} VARENT;
typedef struct var {
- char *name; /* name(s) of variable */
- char *header; /* default header */
- char *alias; /* aliases */
+ const char *name; /* name(s) of variable */
+ const char *header; /* default header */
+ const char *alias; /* aliases */
#define COMM 0x01 /* needs exec arguments and environment (XXX) */
#define LJUST 0x02 /* left adjust on output (trailing blanks) */
#define USER 0x04 /* needs user structure */
@@ -69,10 +69,9 @@ typedef struct var {
* to the generic output routine pvar (which prints simple elements
* from the well known kinfo_proc structure).
*/
- int off; /* offset in structure */
+ off_t off; /* offset in structure */
enum type type; /* type of element */
- char *fmt; /* printf format */
- char *time; /* time format */
+ const char *fmt; /* printf format */
short dwidth; /* dynamic printing width */
/*
* glue to link selected fields together
OpenPOWER on IntegriCloud