public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] misc: syslog: Use bool for connected
@ 2021-04-15 14:59 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2021-04-15 14:59 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7cb10381a45767f27409857da1dd9f67ef2c9f96
commit 7cb10381a45767f27409857da1dd9f67ef2c9f96
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Fri Apr 9 15:40:20 2021 -0300
misc: syslog: Use bool for connected
Checked on x86_64-linux-gnu.
Diff:
---
misc/syslog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/misc/syslog.c b/misc/syslog.c
index bb30cd963a..33a81da49b 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-15 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 14:59 [glibc] misc: syslog: Use bool for connected Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).