From 5cf8e083b5f90aa2ba9ef857cbdf48c0ec7c7c67 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 5 Dec 2008 20:09:53 +0100 Subject: [PATCH] Fix Bool --- clock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clock.c b/clock.c index e51a3ac..f7fb011 100755 --- a/clock.c +++ b/clock.c @@ -54,7 +54,7 @@ push S for enable the second and T for enable the 12H hours format.\n");\ #define MAXW getmaxx(stdscr) #define MAXH getmaxy(stdscr) -typedef enum { True = 1, False = 0} Bool; +typedef enum { False, True } Bool; void start(void); void check_key(Bool); @@ -421,13 +421,13 @@ main(int argc, char **argv) geo.y = atoi(optarg) + 1; break; case 's': - option.second = 1; + option.second = True; break; case 't': - option.twelve = 1; + option.twelve = True; break; case 'b': - option.keylock = 0; + option.keylock = False; break; case 'c': start();