Skip to content

Commit 10694b4

Browse files
committed
use bool for the debug flag
1 parent 63329d5 commit 10694b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

race/race.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#define _XOPEN_SOURCE 700
1717

18+
#include <stdbool.h>
1819
#include <err.h>
1920
#include <fcntl.h>
2021
#include <signal.h>
@@ -41,14 +42,15 @@ int
4142
main(int argc, char **argv)
4243
{
4344
char c = 0;
44-
int fd, dbg = 0;
45+
int fd;
46+
bool dbg = false;
4547
char *addr = NULL;
4648
struct sigaction act;
4749

4850
if (argc == 1)
4951
printf("run with any argument to see some debug info\n");
5052
else
51-
dbg = 1;
53+
dbg = true;
5254

5355
memset(&act, '\0', sizeof (act));
5456
act.sa_handler = finish;

0 commit comments

Comments
 (0)