mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue