]> diplodocus.org Git - nmh/blobdiff - sbr/ext_hook.c
Replace getcpy(f()) calls with mh_xstrdup() when f() can't be NULL.
[nmh] / sbr / ext_hook.c
index f1a9a14ac77839d90165bb74c96a78781c190301..df1e7dc4045a4b0ffb04e16197aba32f1ea5cf0a 100644 (file)
@@ -1,6 +1,4 @@
-/*
- *
- *     Run a program that hooks into some other system.  The first argument is
+/*     Run a program that hooks into some other system.  The first argument is
  *     name of the hook to use, the second is the full path name of a mail message.
  *     The third argument is also the full path name of a mail message, or a NULL
  *     pointer if it isn't needed.  Look in the context for an error message if
@@ -38,7 +36,7 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2)
        vec[vecp++] = NULL;
        execvp(program, vec);
        advise(program, "Unable to execute");
-       _exit(-1);
+       _exit(1);
        /* NOTREACHED */
 
     default: