X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fpidstatus.c;h=fab90d5eecf6ac2dd6a9689085c2b0e299a1a585;hb=a71e7d9a788e0b21ada5f1218724843f10432936;hp=aa664649a887a5fc901523b8fd45c3c70fff4690;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index aa66464..fab90d5 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -2,9 +2,12 @@ /* * 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 #include /* @@ -12,10 +15,6 @@ */ #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - #ifndef WTERMSIG # define WTERMSIG(s) ((int)((s) & 0x7F)) #endif @@ -51,7 +50,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