summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ifcmds.c
diff options
context:
space:
mode:
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