Checked on x86_64-linux-gnu.
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 */
continue;
}
} else
- connected = 1;
+ connected = true;
}
break;
}
__close (LogFile);
LogFile = -1;
- connected = 0;
+ connected = false;
}
void