diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-07-07 21:45:59 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-07-07 21:45:59 +0000 |
commit | b24644307117182c4e7398abae6c521b12c60e93 (patch) | |
tree | 397790e8393de0f5181d7d0861af2f02aea4fff8 /bin | |
parent | 8c8871e6a7057de9e9660454482190feaf52ac47 (diff) | |
download | FreeBSD-src-b24644307117182c4e7398abae6c521b12c60e93.zip FreeBSD-src-b24644307117182c4e7398abae6c521b12c60e93.tar.gz |
Make printval() take a 'void *' thus negating any assumptions the compiler
may try to make about the alignment of the dereferenced datum.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 87b2e5d..a7c95bd 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$"); #include "lomac.h" #include "ps.h" -static void printval(char *, VAR *); +static void printval(void *, VAR *); void printheader(void) @@ -668,7 +668,7 @@ priorityr(KINFO *k, VARENT *ve) * structures. */ static void -printval(char *bp, VAR *v) +printval(void *bp, VAR *v) { static char ofmt[32] = "%"; const char *fcp; |