From 8b3c9fac3caa577b8dff6c304d626813cdaae166 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Fri, 17 Aug 2018 14:37:13 +0000 Subject: [PATCH] Fix style nits. --- lib/libc/gen/setproctitle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c index a631c70e1e9..6eec32d8cbe 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;