static int did_message = 0; /* set if we've already output a message */
if ((hook = context_find(hook_name)) == NULL)
- return (OK);
+ return OK;
switch (pid = fork()) {
case -1:
if (did_message == 0) {
char *msghook;
if ((msghook = context_find("msg-hook")) != NULL)
- inform(msghook);
+ inform("%s", msghook);
else {
char errbuf[BUFSIZ];
snprintf(errbuf, sizeof(errbuf), "external hook \"%s\"", hook);
did_message = 1;
}
- return (NOTOK);
- }
-
- else
- return (OK);
+ return NOTOK;
+ } else
+ return OK;
}