diff options
author | Ken Raeburn <raeburn@mit.edu> | 2002-04-05 23:46:23 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2002-04-05 23:46:23 +0000 |
commit | 6a4731131c862bd70672767d9f46850d3bbbf7d1 (patch) | |
tree | 9a9e81db7fba2dac5dc14bc00e006936ea00102f | |
parent | 3f4e253769640216b38cd72c3c48673bdc585af7 (diff) | |
download | krb5-6a4731131c862bd70672767d9f46850d3bbbf7d1.tar.gz krb5-6a4731131c862bd70672767d9f46850d3bbbf7d1.tar.xz krb5-6a4731131c862bd70672767d9f46850d3bbbf7d1.zip |
* klist.c (one_addr): Make 0 unsigned (!) in conditional expression in
getnameinfo call to avoid silly compiler warning.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14361 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/clients/klist/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/klist/klist.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index 2e5b11077c..5d112621d9 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,8 @@ +2002-04-05 Ken Raeburn <raeburn@mit.edu> + + * klist.c (one_addr): Make 0 unsigned (!) in conditional + expression in getnameinfo call to avoid silly compiler warning. + 2002-03-26 Ken Raeburn <raeburn@mit.edu> * klist.c: Include fake-addrinfo.h, not fake-addrinfo.c. diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 763009ddf1..5b40dbefd1 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -707,7 +707,7 @@ void one_addr(a) namebuf[0] = 0; err = getnameinfo (ss2sa (&ss), socklen (ss2sa (&ss)), namebuf, sizeof (namebuf), 0, 0, - no_resolve ? NI_NUMERICHOST : 0); + no_resolve ? NI_NUMERICHOST : 0U); if (err) { printf ("unprintable address (type %d, error %d %s)", a->addrtype, err, gai_strerror (err)); |