]> err.no Git - util-linux/commitdiff
add missing braces in logger.c
authorLaMont Jones <lamont@mmjgroup.com>
Sun, 29 Jul 2007 04:51:37 +0000 (22:51 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Sun, 29 Jul 2007 04:51:37 +0000 (22:51 -0600)
misc-utils/logger.c

index 40db42b5bd15da1b2278289bb3f2a21df1dbaf09..49ba5dc7c823a46247f3776b248a55d7df9db50f 100644 (file)
@@ -89,10 +89,10 @@ mysyslog(int fd, int logflags, int pri, char *tag, char *msg) {
        time_t now;
 
        if (fd > -1) {
-               if (logflags & LOG_PID)
+               if (logflags & LOG_PID) {
                        snprintf (pid, sizeof(pid)-1, "[%d]", getpid());
                       pid[sizeof(pid)-1]=0;
-              else
+              else
                       pid[0] = 0;
                if (tag)
                       cp = tag;