diff options
author | Jim Meyering <jim@meyering.net> | 2002-09-02 07:31:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-09-02 07:31:24 +0000 |
commit | 2ebfe2fc9cef268af753488f258a13a31b733f1d (patch) | |
tree | 5f8ad6c2c25dc9e9f244b3ddb4582cf1d4800de1 /src | |
parent | 680cd976cc1175d79e75f19efb60e760f0a596f2 (diff) | |
download | coreutils-2ebfe2fc9cef268af753488f258a13a31b733f1d.tar.xz |
(print_table_row): Use an unsigned type for widths
to avoid warning about comparison between signed and unsigned.
(list_signals): Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/kill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kill.c b/src/kill.c index 5f22a4fa8..6595647f9 100644 --- a/src/kill.c +++ b/src/kill.c @@ -172,8 +172,8 @@ operand2sig (char const *operand, char *signame) maximum name width is NAME_WIDTH, and SIGNAME is the name to print. */ static void -print_table_row (int num_width, int signum, - int name_width, char const *signame) +print_table_row (unsigned int num_width, int signum, + unsigned int name_width, char const *signame) { char const *description = strsignal (signum); printf ("%*d %-*s %s\n", num_width, signum, name_width, signame, @@ -193,10 +193,10 @@ list_signals (bool table, char *const *argv) if (table) { - int name_width = 0; + unsigned int name_width = 0; /* Compute the maximum width of a signal number. */ - int num_width = 1; + unsigned int num_width = 1; for (signum = 1; signum <= SIGNUM_BOUND / 10; signum *= 10) num_width++; |