Mercurial > hg > octave-nkf > gnulib-hg
changeset 4014:1b8d73039203
(str2signum, sig2str): Avoid a warning from gcc:
Use `unsigned', not `int', as type of index.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 23 Nov 2002 16:17:34 +0000 |
parents | d34039a85806 |
children | f929cbe566ed |
files | lib/sig2str.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/sig2str.c +++ b/lib/sig2str.c @@ -270,7 +270,7 @@ } 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; @@ -315,7 +315,7 @@ int sig2str (int signum, char *signame) { - int i; + unsigned i; for (i = 0; i < NUMNAME_ENTRIES; i++) if (numname_table[i].num == signum) {