summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-07-07 21:45:59 +0000
committerjmallett <jmallett@FreeBSD.org>2002-07-07 21:45:59 +0000
commitb24644307117182c4e7398abae6c521b12c60e93 (patch)
tree397790e8393de0f5181d7d0861af2f02aea4fff8 /bin/ps/print.c
parent8c8871e6a7057de9e9660454482190feaf52ac47 (diff)
downloadFreeBSD-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/ps/print.c')
-rw-r--r--bin/ps/print.c4
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;
OpenPOWER on IntegriCloud