]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
s/int/bool/ for boolean variable
authorRay Strode <rstrode@redhat.com>
Wed, 4 Jun 2008 01:52:55 +0000 (21:52 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 4 Jun 2008 01:52:55 +0000 (21:52 -0400)
src/main.c

index 6f96c0249bfdc295754f735b7f7e807652b3e91b..d19c155756d8d6bfe626c9d15a6937341d40ce7f 100644 (file)
@@ -567,15 +567,13 @@ main (int    argc,
       .ptmx = -1,
   };
   int exit_code;
-  int asdaemon = 0;
+  bool asdaemon = false;
 
   if (argc >= 2 && !strcmp(argv[1], "--asdaemon"))
-      asdaemon = 1;
+      asdaemon = true;
 
   if (asdaemon && argc == 3)
     {
-      asdaemon = 1;
-
       state.ptmx = strtol(argv[2], NULL, 0);
       if ((state.ptmx == LONG_MIN || state.ptmx == LONG_MAX) && errno != 0)
         {