diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-04-09 15:40:20 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-04-15 11:32:40 -0300 |
commit | 7cb10381a45767f27409857da1dd9f67ef2c9f96 (patch) | |
tree | 70477415f32da2f8e6d8f7cd8d507dac40211f18 /misc | |
parent | 48ec055ddc475bd521d87733a4d128b62681d6d7 (diff) | |
download | glibc-7cb10381a45767f27409857da1dd9f67ef2c9f96.zip glibc-7cb10381a45767f27409857da1dd9f67ef2c9f96.tar.gz glibc-7cb10381a45767f27409857da1dd9f67ef2c9f96.tar.bz2 |
misc: syslog: Use bool for connected
Checked on x86_64-linux-gnu.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/syslog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/syslog.c b/misc/syslog.c index bb30cd9..33a81da 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -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 |