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
b0677c345c
commit
ffe25988bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99547
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user