diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-08-17 14:37:13 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2018-08-17 14:37:13 +0000 |
commit | 8b3c9fac3caa577b8dff6c304d626813cdaae166 (patch) | |
tree | 5554d74c5f8c54528b0e043abf26fbaa9d2349ac | |
parent | 2fe6aefff8452887ecd69efd86e39c52f8b15e67 (diff) | |
download | src-8b3c9fac3caa577b8dff6c304d626813cdaae166.tar.gz src-8b3c9fac3caa577b8dff6c304d626813cdaae166.zip |
Notes
-rw-r--r-- | lib/libc/gen/setproctitle.c | 6 |
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; |