summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ifcmds.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2004-03-09 11:57:28 +0000
committerdwmalone <dwmalone@FreeBSD.org>2004-03-09 11:57:28 +0000
commit24ee2482d3d3d2567ad1509e8bfa3c7509e142f0 (patch)
treed5af4c0ed3f27de3990351113eb49875f0ad301d /usr.bin/systat/ifcmds.c
parent036b26782d13d8853608666d94a5d6313120fa92 (diff)
downloadFreeBSD-src-24ee2482d3d3d2567ad1509e8bfa3c7509e142f0.zip
FreeBSD-src-24ee2482d3d3d2567ad1509e8bfa3c7509e142f0.tar.gz
Fix the easy warnings:
1) Avoid shadowing index. 2) Constness. 3) Missing prototype for ifcmd. 4) Missing include of string.h. 5) Avoid shadowing error function. 6) ANSI definition for main.
Diffstat (limited to 'usr.bin/systat/ifcmds.c')
-rw-r--r--usr.bin/systat/ifcmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/systat/ifcmds.c b/usr.bin/systat/ifcmds.c
index 49f215f..68c377e 100644
--- a/usr.bin/systat/ifcmds.c
+++ b/usr.bin/systat/ifcmds.c
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <float.h>
#include <err.h>
@@ -55,7 +56,7 @@ static int selectscale(const char *);
int
ifcmd(const char *cmd, const char *args)
{
- if (prefix((char *)cmd, (char *)"scale")) {
+ if (prefix(cmd, "scale")) {
if (*args != '\0' && selectscale(args) != -1)
;
else {
OpenPOWER on IntegriCloud