From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 65F333948A71; Thu, 15 Apr 2021 14:59:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65F333948A71 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] misc: syslog: Use bool for connected X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 48ec055ddc475bd521d87733a4d128b62681d6d7 X-Git-Newrev: 7cb10381a45767f27409857da1dd9f67ef2c9f96 Message-Id: <20210415145933.65F333948A71@sourceware.org> Date: Thu, 15 Apr 2021 14:59:33 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 14:59:33 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7cb10381a45767f27409857da1dd9f67ef2c9f96 commit 7cb10381a45767f27409857da1dd9f67ef2c9f96 Author: Adhemerval Zanella 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