diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-27 17:21:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:53 -0500 |
commit | 4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a (patch) | |
tree | b2465bb451c73232e640d2c2718a6af084be2345 /source4/lib/util/debug.c | |
parent | 8a1d019f53ef6d1a6900a005b335bdc10d14bbe4 (diff) | |
download | samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.tar.gz samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.tar.bz2 samba-4fb038b0b8e7a4bb69ac0d9022684eeaca8a491a.zip |
r24710: Use standard boolean type for easier use by external users.
(This used to be commit 99f4124137d4a61216e8189f26d4da32882c0f4a)
Diffstat (limited to 'source4/lib/util/debug.c')
-rw-r--r-- | source4/lib/util/debug.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/lib/util/debug.c b/source4/lib/util/debug.c index c29b3bfaec..67663cb6ce 100644 --- a/source4/lib/util/debug.c +++ b/source4/lib/util/debug.c @@ -46,22 +46,23 @@ static struct { const char *prog_name; } state; -static BOOL reopen_logs_scheduled; -static BOOL check_reopen_logs(void) +static bool reopen_logs_scheduled; +static bool check_reopen_logs(void) { if (state.fd == 0 || reopen_logs_scheduled) { - reopen_logs_scheduled = False; + reopen_logs_scheduled = false; reopen_logs(); } - if (state.fd <= 0) return False; + if (state.fd <= 0) + return false; - return True; + return true; } _PUBLIC_ void debug_schedule_reopen_logs(void) { - reopen_logs_scheduled = True; + reopen_logs_scheduled = true; } static void log_timestring(int level, const char *location, const char *func) |