summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
{