Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 28 Sep 2004 22:13:11 +0000 (22:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 28 Sep 2004 22:13:11 +0000 (22:13 +0000)
* sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
getifaddrs call.
* sunrpc/pmap_clnt.c (__get_myaddress): Likewise.

ChangeLog
sunrpc/get_myaddr.c
sunrpc/pmap_clnt.c

index c030053..8d1815e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
 
+       * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
+       getifaddrs call.
+       * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
+
        * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
        disable all checking.
 
index ee82297..c0beee9 100644 (file)
@@ -63,7 +63,7 @@ get_myaddress (struct sockaddr_in *addr)
 {
   struct ifaddrs *ifa;
 
-  if (getifaddrs (&ifa) == 0)
+  if (getifaddrs (&ifa) != 0)
     {
       perror ("get_myaddress: getifaddrs");
       exit (1);
index c968511..aa5740c 100644 (file)
@@ -57,7 +57,7 @@ __get_myaddress (struct sockaddr_in *addr)
 {
   struct ifaddrs *ifa;
 
-  if (getifaddrs (&ifa) == 0)
+  if (getifaddrs (&ifa) != 0)
     {
       perror ("get_myaddress: getifaddrs");
       exit (1);