From: Michael R Sweet Date: Wed, 25 Nov 2020 13:08:37 +0000 (-0500) Subject: Coding style X-Git-Tag: v2.3.3op1~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F51%2Fhead;p=thirdparty%2Fcups.git Coding style --- diff --git a/scheduler/main.c b/scheduler/main.c index 42995eac21..d14b48e91b 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -683,13 +683,14 @@ main(int argc, /* I - Number of command-line args */ if (OnDemand) { cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started on demand."); -# ifdef HAVE_SYSTEMD + +# ifdef HAVE_SYSTEMD sd_notifyf(0, "READY=1\n" - "STATUS=Scheduler is running...\n" - "MAINPID=%lu", - (unsigned long) getpid()); -# endif /* HAVE_SYSTEMD */ - } else + "STATUS=Scheduler is running...\n" + "MAINPID=%lu", (unsigned long)getpid()); +# endif /* HAVE_SYSTEMD */ + } + else #endif /* HAVE_ONDEMAND */ if (fg)