summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-03 21:52:55 -0400
committerRay Strode <rstrode@redhat.com>2008-06-03 21:52:55 -0400
commitbf22ecce1b31d11b9986fb2fac5e0e689b60b4e9 (patch)
tree1d877f2c1d1f6e60e8eb0f605193f7af67a03327 /src/main.c
parenta01727b297ef4a98f79559b2de113eeba8c2be68 (diff)
downloadplymouth-bf22ecce1b31d11b9986fb2fac5e0e689b60b4e9.tar.gz
plymouth-bf22ecce1b31d11b9986fb2fac5e0e689b60b4e9.tar.xz
plymouth-bf22ecce1b31d11b9986fb2fac5e0e689b60b4e9.zip
s/int/bool/ for boolean variable
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 6f96c02..d19c155 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)
{