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:
parent
8c8871e6a7
commit
b246443071
@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "lomac.h"
|
#include "lomac.h"
|
||||||
#include "ps.h"
|
#include "ps.h"
|
||||||
|
|
||||||
static void printval(char *, VAR *);
|
static void printval(void *, VAR *);
|
||||||
|
|
||||||
void
|
void
|
||||||
printheader(void)
|
printheader(void)
|
||||||
@ -668,7 +668,7 @@ priorityr(KINFO *k, VARENT *ve)
|
|||||||
* structures.
|
* structures.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
printval(char *bp, VAR *v)
|
printval(void *bp, VAR *v)
|
||||||
{
|
{
|
||||||
static char ofmt[32] = "%";
|
static char ofmt[32] = "%";
|
||||||
const char *fcp;
|
const char *fcp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user