summaryrefslogtreecommitdiffstats
path: root/usr.sbin/getpmac
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-01-27 14:44:39 +0000
committerdelphij <delphij@FreeBSD.org>2005-01-27 14:44:39 +0000
commitfa89c5605faa7ae6d16c35fc946e46a24e9d1efe (patch)
tree800108ee5884bcedcb1f18818809981552758c56 /usr.sbin/getpmac
parent1f1fe48dc9a77d0ec832c8d740c61402285c96a9 (diff)
downloadFreeBSD-src-fa89c5605faa7ae6d16c35fc946e46a24e9d1efe.zip
FreeBSD-src-fa89c5605faa7ae6d16c35fc946e46a24e9d1efe.tar.gz
WARNS?=6 cleanup for [gs]et[fp]mac:
- Constify structure members that should not be changed during process. - Apply static where needed - signed/unsigned madness - Bump WARNS?= levels from 2 to 6 (this is a diff reduction for a subsequent commit against these Makefile's)
Diffstat (limited to 'usr.sbin/getpmac')
-rw-r--r--usr.sbin/getpmac/Makefile2
-rw-r--r--usr.sbin/getpmac/getpmac.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/getpmac/Makefile b/usr.sbin/getpmac/Makefile
index 962a3e7..b6ff037 100644
--- a/usr.sbin/getpmac/Makefile
+++ b/usr.sbin/getpmac/Makefile
@@ -4,6 +4,6 @@ PROG= getpmac
MAN= getpmac.8
SRCS= getpmac.c
-WARNS?= 2
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/usr.sbin/getpmac/getpmac.c b/usr.sbin/getpmac/getpmac.c
index ee289e8..6e81558 100644
--- a/usr.sbin/getpmac/getpmac.c
+++ b/usr.sbin/getpmac/getpmac.c
@@ -46,7 +46,7 @@
#define MAXELEMENTS 32
-void
+static void
usage(void)
{
OpenPOWER on IntegriCloud