X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fpidstatus.c;h=fab90d5eecf6ac2dd6a9689085c2b0e299a1a585;hb=0808f3e85977428948be17783e31c14c4f4b8622;hp=7991d5925a6a22cb385496a15f42d33517a0a18c;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index 7991d59..fab90d5 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -2,13 +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 /* @@ -16,10 +15,6 @@ */ #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - #ifndef WTERMSIG # define WTERMSIG(s) ((int)((s) & 0x7F)) #endif @@ -55,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