]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
misc: syslog: Use bool for connected
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 9 Apr 2021 18:40:20 +0000 (15:40 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Apr 2021 14:32:40 +0000 (11:32 -0300)
Checked on x86_64-linux-gnu.

misc/syslog.c

index bb30cd963a239fa63af05ebde1be77182ac5d0e0..33a81da49b301430cfbe62d6303eb1bc53a01099 100644 (file)
@@ -62,7 +62,7 @@ static char sccsid[] = "@(#)syslog.c  8.4 (Berkeley) 3/18/94";
 
 static int     LogType = SOCK_DGRAM;   /* type of socket connection */
 static int     LogFile = -1;           /* fd for log */
-static int     connected;              /* have done connect */
+static bool    connected;              /* have done connect */
 static int     LogStat;                /* status bits, set by openlog() */
 static const char *LogTag;             /* string to tag the entry with */
 static int     LogFacility = LOG_USER; /* default facility code */
@@ -378,7 +378,7 @@ openlog_internal(const char *ident, int logstat, int logfac)
                                        continue;
                                }
                        } else
-                               connected = 1;
+                               connected = true;
                }
                break;
        }
@@ -412,7 +412,7 @@ closelog_internal (void)
 
   __close (LogFile);
   LogFile = -1;
-  connected = 0;
+  connected = false;
 }
 
 void