]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use int instead of bool in CUPS 2.4.x.
authorMichael R Sweet <msweet@msweet.org>
Thu, 3 Apr 2025 14:49:46 +0000 (10:49 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 3 Apr 2025 14:49:46 +0000 (10:49 -0400)
cups/clock.c

index e0dcd5dc6c091822f09764e566f933c3dbec7839..53da9fb22ad8248a4cbc03a773f4587df36f9aa3 100644 (file)
@@ -14,7 +14,7 @@
 // Local globals...
 //
 
-static bool    cups_clock_init = false;// Clock initialized?
+static int     cups_clock_init = 0;    // Clock initialized?
 static _cups_mutex_t cups_clock_mutex = _CUPS_MUTEX_INITIALIZER;
                                        // Mutex to control access
 #ifdef _WIN32
@@ -60,7 +60,7 @@ _cupsGetClock(void)
   if (!cups_clock_init)
   {
     // First time through initialize the initial tick count...
-    cups_clock_init = true;
+    cups_clock_init = 1;
     cups_first_tick = curtick;
   }
 
@@ -82,7 +82,7 @@ _cupsGetClock(void)
     if (!cups_clock_init)
     {
       // First time through initialize the initial clock value...
-      cups_clock_init  = true;
+      cups_clock_init  = 1;
       cups_first_clock = curclock;
     }
 
@@ -98,7 +98,7 @@ _cupsGetClock(void)
     if (!cups_clock_init)
     {
       // First time through initialize the initial clock value...
-      cups_clock_init = true;
+      cups_clock_init = 1;
       cups_first_time = curtime;
     }