mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
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:
parent
35704b2f29
commit
684370e703
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104411
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user