X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e45544e082577402083dec7e23089d74ac7d89f..06d294bec2a41d0f6bbbf77d927292ada9464ced:/sbr/ext_hook.c?ds=inline diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index 7b94e57a..186f77c3 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -22,7 +22,7 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) static int did_message = 0; /* set if we've already output a message */ - if ((hook = context_find(hook_name)) == (char *)0) + if ((hook = context_find(hook_name)) == NULL) return (OK); switch (pid = fork()) { @@ -49,7 +49,7 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) if (status != OK) { if (did_message == 0) { char *msghook; - if ((msghook = context_find("msg-hook")) != (char *)0) + if ((msghook = context_find("msg-hook")) != NULL) advise(NULL, msghook); else { char errbuf[BUFSIZ];