mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use a designator for initializing only one member of the nlist
structs, making pstat WARNS=3 clean on i386, sparc64 and amd64. Bump WARNS level to 3. Approved by: sam, pjd
This commit is contained in:
parent
f56e71275a
commit
00191f86e0
2 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
|
|||
MAN= pstat.8
|
||||
MLINKS= pstat.8 swapinfo.8
|
||||
|
||||
WARNS?= 2
|
||||
WARNS?= 3
|
||||
|
||||
DPADD= ${LIBKVM} ${LIBUTIL}
|
||||
LDADD= -lkvm -lutil
|
||||
|
|
|
|||
|
|
@ -81,11 +81,11 @@ enum {
|
|||
};
|
||||
|
||||
static struct nlist nl[] = {
|
||||
{ "_constty", 0 },
|
||||
{ "_maxfiles", 0 },
|
||||
{ "_nfiles", 0 },
|
||||
{ "_tty_list", 0 },
|
||||
{ "" }
|
||||
{ .n_name = "_constty" },
|
||||
{ .n_name = "_maxfiles" },
|
||||
{ .n_name = "_nfiles" },
|
||||
{ .n_name = "_tty_list" },
|
||||
{ .n_name = "" }
|
||||
};
|
||||
|
||||
static int humanflag;
|
||||
|
|
|
|||
Loading…
Reference in a new issue