summaryrefslogtreecommitdiffstats
path: root/usr.sbin/setpmac
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/setpmac
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/setpmac')
-rw-r--r--usr.sbin/setpmac/Makefile2
-rw-r--r--usr.sbin/setpmac/setpmac.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/setpmac/Makefile b/usr.sbin/setpmac/Makefile
index 08b8b93..ca398ea 100644
--- a/usr.sbin/setpmac/Makefile
+++ b/usr.sbin/setpmac/Makefile
@@ -4,6 +4,6 @@ PROG= setpmac
MAN= setpmac.8
SRCS= setpmac.c
-WARNS?= 2
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/usr.sbin/setpmac/setpmac.c b/usr.sbin/setpmac/setpmac.c
index 8314a77..bc096bb 100644
--- a/usr.sbin/setpmac/setpmac.c
+++ b/usr.sbin/setpmac/setpmac.c
@@ -46,7 +46,7 @@
#define MAXELEMENTS 32
-void
+static void
usage(void)
{
@@ -57,7 +57,7 @@ usage(void)
int
main(int argc, char *argv[])
{
- char *shell;
+ const char *shell;
mac_t label;
int error;
OpenPOWER on IntegriCloud