summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-10-03 15:00:07 +0000
committerbde <bde@FreeBSD.org>2002-10-03 15:00:07 +0000
commit6e48538b41559fd167bc9dcdafefaa5d3fe8e8f5 (patch)
treeb2bff7ddf346bfe253fd29b1355564e760ac0117 /bin
parentbb7f39d2ed192371c963569561d500ad325fd805 (diff)
downloadFreeBSD-src-6e48538b41559fd167bc9dcdafefaa5d3fe8e8f5.zip
FreeBSD-src-6e48538b41559fd167bc9dcdafefaa5d3fe8e8f5.tar.gz
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.
Diffstat (limited to 'bin')
-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 8ed85e9..b33c072 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 */
OpenPOWER on IntegriCloud