Added <stdbool.h> for standard bool definitions
[dockapps/wmnotify.git] / src / dockapp.c
index 9f8994b..c4c98f5 100644 (file)
@@ -72,14 +72,14 @@ GetColor( char *name )
   color.pixel = 0;
   res = (bool) XParseColor( dockapp.display, attributes.colormap, name,
                            &color );
-  if( res == FALSE ) {
+  if( res == false ) {
     fprintf( stderr, "%s: Can't parse %s.\n", PACKAGE, name );
     ErrorLocation( __FILE__, __LINE__ );
     exit( EXIT_FAILURE );
   }
   
   res = (bool) XAllocColor( dockapp.display, attributes.colormap, &color );
-  if( res == FALSE ) {
+  if( res == false ) {
     fprintf( stderr, "%s: Can't allocate %s.\n", PACKAGE, name );
     ErrorLocation( __FILE__, __LINE__ );
     exit( EXIT_FAILURE );
@@ -93,9 +93,9 @@ static void
 flush_expose( Window win )
 {
   XEvent dummy;
-  bool res = TRUE;
+  bool res = true;
 
-  while( res != FALSE ) {
+  while( res != false ) {
     res = (bool) XCheckTypedWindowEvent( dockapp.display, win, Expose, &dummy );
   }
 }