From 2ee651df79a166fc4f2bc1941362f97cc2841314 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 28 Apr 2010 09:56:50 -0400 Subject: [PATCH] Use 1/0 instead of TRUE/FALSE so we don't need sudoers.h --- plugins/sudoers/boottime.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/sudoers/boottime.c b/plugins/sudoers/boottime.c index 12aa30dd6..f91c9850f 100644 --- a/plugins/sudoers/boottime.c +++ b/plugins/sudoers/boottime.c @@ -46,7 +46,7 @@ /* * Fill in a struct timeval with the time the system booted. - * Returns TRUE on success and FALSE on failure. + * Returns 1 on success and 0 on failure. */ #if defined(__linux__) @@ -65,14 +65,14 @@ get_boottime(struct timeval *tv) if (strncmp(line, "btime ", 6) == 0) { tv->tv_sec = atoi(line + 6); tv->tv_usec = 0; - return TRUE; + return 1; } } fclose(fp); free(line); } - return FALSE; + return 0; } #elif defined(HAVE_SYSCTL) && defined(KERN_BOOTTIME) @@ -87,9 +87,9 @@ get_boottime(struct timeval *tv) mib[1] = KERN_BOOTTIME; size = sizeof(*tv); if (sysctl(mib, 2, tv, &size, NULL, 0) != -1) - return TRUE; + return 1; - return FALSE; + return 0; } #elif defined(HAVE_GETUTXID) @@ -133,6 +133,6 @@ get_boottime(struct timeval *tv) time_t get_boottime() { - return FALSE; + return 0; } #endif -- 2.40.0