aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-08-17 14:37:13 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-08-17 14:37:13 +0000
commit8b3c9fac3caa577b8dff6c304d626813cdaae166 (patch)
tree5554d74c5f8c54528b0e043abf26fbaa9d2349ac
parent2fe6aefff8452887ecd69efd86e39c52f8b15e67 (diff)
downloadsrc-8b3c9fac3caa577b8dff6c304d626813cdaae166.tar.gz
src-8b3c9fac3caa577b8dff6c304d626813cdaae166.zip
Notes
-rw-r--r--lib/libc/gen/setproctitle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c
index a631c70e1e92..6eec32d8cbee 100644
--- a/lib/libc/gen/setproctitle.c
+++ b/lib/libc/gen/setproctitle.c
@@ -72,7 +72,7 @@ setproctitle_internal(const char *fmt, va_list ap)
if (buf == NULL) {
buf = malloc(SPT_BUFSIZE);
- if (buf == NULL)
+ if (buf == NULL)
return (NULL);
nargv[0] = buf;
}
@@ -98,13 +98,13 @@ setproctitle_internal(const char *fmt, va_list ap)
}
/* print the argument string */
- (void) vsnprintf(buf + len, SPT_BUFSIZE - len, fmt, ap);
+ (void)vsnprintf(buf + len, SPT_BUFSIZE - len, fmt, ap);
nargvp = nargv;
nargc = 1;
kbuf = buf;
} else if (*obuf != '\0') {
- /* Idea from NetBSD - reset the title on fmt == NULL */
+ /* Idea from NetBSD - reset the title on fmt == NULL */
nargvp = oargv;
nargc = oargc;
kbuf = obuf;