]> granicus.if.org Git - sudo/commitdiff
Don't use TRUE/FALSE which may not be defined.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 3 Jun 2010 12:38:30 +0000 (08:38 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 3 Jun 2010 12:38:30 +0000 (08:38 -0400)
--HG--
branch : 1.7

boottime.c

index d78b6d6f486cf833804510633ce524e0fa71c123..1067e34de23cbc407c312d2fa0d2dacfc956a71c 100644 (file)
@@ -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