mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
misc: syslog: Use bool for connected
Checked on x86_64-linux-gnu.
This commit is contained in:
parent
48ec055ddc
commit
7cb10381a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user