Make printval() take a 'void *' thus negating any assumptions the compiler

may try to make about the alignment of the dereferenced datum.
This commit is contained in:
Juli Mallett 2002-07-07 21:45:59 +00:00
parent b0677c345c
commit ffe25988bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99547

View File

@ -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;