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:
Giorgos Keramidas 2005-03-21 18:11:31 +00:00
parent f56e71275a
commit 00191f86e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143936
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
MAN= pstat.8 MAN= pstat.8
MLINKS= pstat.8 swapinfo.8 MLINKS= pstat.8 swapinfo.8
WARNS?= 2 WARNS?= 3
DPADD= ${LIBKVM} ${LIBUTIL} DPADD= ${LIBKVM} ${LIBUTIL}
LDADD= -lkvm -lutil LDADD= -lkvm -lutil

View File

@ -81,11 +81,11 @@ enum {
}; };
static struct nlist nl[] = { static struct nlist nl[] = {
{ "_constty", 0 }, { .n_name = "_constty" },
{ "_maxfiles", 0 }, { .n_name = "_maxfiles" },
{ "_nfiles", 0 }, { .n_name = "_nfiles" },
{ "_tty_list", 0 }, { .n_name = "_tty_list" },
{ "" } { .n_name = "" }
}; };
static int humanflag; static int humanflag;