aboutsummaryrefslogtreecommitdiff
path: root/bin/ps/ps.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-10-03 15:00:07 +0000
committerBruce Evans <bde@FreeBSD.org>2002-10-03 15:00:07 +0000
commit684370e703e96e636d823a695ba95279ba7a3ae8 (patch)
treeb2bff7ddf346bfe253fd29b1355564e760ac0117 /bin/ps/ps.h
parent35704b2f2937e07e53ee6a52a87724478bc4a307 (diff)
downloadsrc-684370e703e96e636d823a695ba95279ba7a3ae8.tar.gz
src-684370e703e96e636d823a695ba95279ba7a3ae8.zip
Use a non-bogus type for representing the values of offsets in structs.
off_t is for offsets in files, and it is signed so it was no better than the original type of int for avoiding warnings from broken lints, except accidentally on machines like i386's where size_t is smaller than off_t.
Notes
Notes: svn path=/head/; revision=104411
Diffstat (limited to 'bin/ps/ps.h')
-rw-r--r--bin/ps/ps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/ps.h b/bin/ps/ps.h
index 8ed85e96a86a..b33c0724869b 100644
--- a/bin/ps/ps.h
+++ b/bin/ps/ps.h
@@ -69,7 +69,7 @@ typedef struct var {
* to the generic output routine pvar (which prints simple elements
* from the well known kinfo_proc structure).
*/
- off_t off; /* offset in structure */
+ int off; /* offset in structure */
enum type type; /* type of element */
const char *fmt; /* printf format */
short dwidth; /* dynamic printing width */