From 1a6451654fe365c1981b18f35cb6e453166d1b32 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 25 Sep 2007 17:19:02 +0000 Subject: We no longer use bool in our public headers, using int instead. --- src/start-stop-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/start-stop-daemon.c') diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index 1b4c7f28..fc5fccb8 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -733,7 +733,7 @@ int start_stop_daemon (int argc, char **argv) tmp = rc_strcatpaths (ch_root, exec, (char *) NULL); else tmp = exec; - if (! rc_is_file (tmp)) { + if (rc_is_file (tmp) != 0) { eerror ("%s: %s does not exist", applet, tmp); if (ch_root) free (tmp); @@ -759,7 +759,7 @@ int start_stop_daemon (int argc, char **argv) if (result < 1) exit (result == 0 ? EXIT_SUCCESS : EXIT_FAILURE); - if (pidfile && rc_is_file (pidfile)) + if (pidfile && rc_is_file (pidfile) == 0) unlink (pidfile); if (svcname) -- cgit v1.2.3