X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsig2str.c;h=f1eec22bf94c061df81bf7e2cf1fe72a595ee35e;hb=4bc0a0ad4c963017ab77335801566546afbf965b;hp=1edc9f119502d32c079b0b570387f53a96ac7304;hpb=833bf615e55c2c7da116e82558364653766c1dce;p=gnulib.git diff --git a/lib/sig2str.c b/lib/sig2str.c index 1edc9f119..f1eec22bf 100644 --- a/lib/sig2str.c +++ b/lib/sig2str.c @@ -28,13 +28,6 @@ #include #include -#if HAVE_SYS_WAIT_H -# include -#endif -#ifndef WTERMSIG -# define WTERMSIG(s) ((s) & 0x7F) -#endif - #include "sig2str.h" #ifndef SIGRTMIN @@ -224,7 +217,7 @@ static struct numname { int num; char const name[8]; } numname_table[] = #endif /* Older AIX versions. */ -#ifdef SIGALRM1 +#ifdef SIGALRM1 NUMNAME (ALRM1), /* unknown; taken from Bash 2.05 */ #endif #ifdef SIGKAP @@ -277,7 +270,7 @@ str2signum (char const *signame) } else { - int i; + unsigned i; for (i = 0; i < NUMNAME_ENTRIES; i++) if (strcmp (numname_table[i].name, signame) == 0) return numname_table[i].num; @@ -322,7 +315,7 @@ str2sig (char const *signame, int *signum) int sig2str (int signum, char *signame) { - int i; + unsigned i; for (i = 0; i < NUMNAME_ENTRIES; i++) if (numname_table[i].num == signum) {