X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..0c50c669:/sbr/pidstatus.c?ds=inline diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index aa664649..de1c55c6 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -2,7 +2,9 @@ /* * pidstatus.c -- report child's status * - * $Id$ + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -12,10 +14,6 @@ */ #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - #ifndef WTERMSIG # define WTERMSIG(s) ((int)((s) & 0x7F)) #endif @@ -51,7 +49,8 @@ pidstatus (int status, FILE *fp, char *cp) if (cp) fprintf (fp, "%s: ", cp); fprintf (fp, "signal %d", signum); - if (signum >= 0 && signum < sizeof(sigmsg) && sigmsg[signum] != NULL) + if (signum >= 0 && signum < (int) sizeof(sigmsg) && + sigmsg[signum] != NULL) fprintf (fp, " (%s%s)\n", sigmsg[signum], WCOREDUMP(status) ? ", core dumped" : ""); else