diff options
author | keramida <keramida@FreeBSD.org> | 2005-03-21 18:11:31 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-03-21 18:11:31 +0000 |
commit | 29e024a36a8080cb38f91ea04edd542f5a205cbb (patch) | |
tree | bcfd996416f52410a5d542116eb496a0d78f32e7 /usr.sbin/pstat/pstat.c | |
parent | cc00121627f149f7c85c4d7f9260614e5abd484b (diff) | |
download | FreeBSD-src-29e024a36a8080cb38f91ea04edd542f5a205cbb.zip FreeBSD-src-29e024a36a8080cb38f91ea04edd542f5a205cbb.tar.gz |
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
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 7a721a3..ca78637 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -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; |