]> diplodocus.org Git - nmh/commitdiff
Replace `(char *)0' et al with `NULL'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:27:12 +0000 (23:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:27:12 +0000 (23:27 +0100)
None of them are vararg parameters.

sbr/ext_hook.c

index 7b94e57..186f77c 100644 (file)
@@ -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];