projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document merges from coreutils.
[gnulib.git]
/
lib
/
sig2str.c
diff --git
a/lib/sig2str.c
b/lib/sig2str.c
index
4096465
..
f1eec22
100644
(file)
--- a/
lib/sig2str.c
+++ b/
lib/sig2str.c
@@
-28,10
+28,6
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
#include "sig2str.h"
#ifndef SIGRTMIN
#include "sig2str.h"
#ifndef SIGRTMIN
@@
-274,7
+270,7
@@
str2signum (char const *signame)
}
else
{
}
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;
for (i = 0; i < NUMNAME_ENTRIES; i++)
if (strcmp (numname_table[i].name, signame) == 0)
return numname_table[i].num;
@@
-319,7
+315,7
@@
str2sig (char const *signame, int *signum)
int
sig2str (int signum, char *signame)
{
int
sig2str (int signum, char *signame)
{
-
int
i;
+
unsigned
i;
for (i = 0; i < NUMNAME_ENTRIES; i++)
if (numname_table[i].num == signum)
{
for (i = 0; i < NUMNAME_ENTRIES; i++)
if (numname_table[i].num == signum)
{