Skip to content

Commit 07812be

Browse files
committed
Use int instead of bool in CUPS 2.4.x.
1 parent 9d41450 commit 07812be

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cups/clock.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Local globals...
1515
//
1616

17-
static bool cups_clock_init = false;// Clock initialized?
17+
static int cups_clock_init = 0; // Clock initialized?
1818
static _cups_mutex_t cups_clock_mutex = _CUPS_MUTEX_INITIALIZER;
1919
// Mutex to control access
2020
#ifdef _WIN32
@@ -60,7 +60,7 @@ _cupsGetClock(void)
6060
if (!cups_clock_init)
6161
{
6262
// First time through initialize the initial tick count...
63-
cups_clock_init = true;
63+
cups_clock_init = 1;
6464
cups_first_tick = curtick;
6565
}
6666

@@ -82,7 +82,7 @@ _cupsGetClock(void)
8282
if (!cups_clock_init)
8383
{
8484
// First time through initialize the initial clock value...
85-
cups_clock_init = true;
85+
cups_clock_init = 1;
8686
cups_first_clock = curclock;
8787
}
8888

@@ -98,7 +98,7 @@ _cupsGetClock(void)
9898
if (!cups_clock_init)
9999
{
100100
// First time through initialize the initial clock value...
101-
cups_clock_init = true;
101+
cups_clock_init = 1;
102102
cups_first_time = curtime;
103103
}
104104

0 commit comments

Comments
 (0)