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.
This commit is contained in:
Bruce Evans 2002-10-03 15:00:07 +00:00
parent 35704b2f29
commit 684370e703
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104411

View File

@ -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 */