summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ngctl/msg.c')
-rw-r--r--usr.sbin/ngctl/msg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ngctl/msg.c b/usr.sbin/ngctl/msg.c
index fa5ae29..c332879 100644
--- a/usr.sbin/ngctl/msg.c
+++ b/usr.sbin/ngctl/msg.c
@@ -70,7 +70,7 @@ MsgCmd(int ac, char **av)
/* Get arguments */
if (ac < 3)
- return(CMDRTN_USAGE);
+ return (CMDRTN_USAGE);
path = av[1];
cmdstr = av[2];
@@ -79,7 +79,7 @@ MsgCmd(int ac, char **av)
len += strlen(av[i]) + 1;
if ((buf = malloc(len)) == NULL) {
warn("malloc");
- return(CMDRTN_ERROR);
+ return (CMDRTN_ERROR);
}
for (*buf = '\0', i = 3; i < ac; i++) {
snprintf(buf + strlen(buf),
@@ -90,7 +90,7 @@ MsgCmd(int ac, char **av)
if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) {
free(buf);
warn("send msg");
- return(CMDRTN_ERROR);
+ return (CMDRTN_ERROR);
}
free(buf);
@@ -114,7 +114,7 @@ MsgCmd(int ac, char **av)
}
/* Done */
- return(CMDRTN_OK);
+ return (CMDRTN_OK);
}
/*
OpenPOWER on IntegriCloud