From 376acaba061dd64a686ee0673f00f4b4d3363d0a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 3 Jun 2010 08:38:30 -0400 Subject: [PATCH] Don't use TRUE/FALSE which may not be defined. --HG-- branch : 1.7 --- boottime.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boottime.c b/boottime.c index d78b6d6f4..1067e34de 100644 --- a/boottime.c +++ b/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__) @@ -66,14 +66,14 @@ get_boottime(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) @@ -89,9 +89,9 @@ get_boottime(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) @@ -138,6 +138,6 @@ int get_boottime(tv) struct timeval *tv { - return FALSE; + return 0; } #endif -- 2.40.0