]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Correct order of parameters for getnetbyaddr.
authorUlrich Drepper <drepper@redhat.com>
Sun, 25 Jan 1998 18:39:22 +0000 (18:39 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 25 Jan 1998 18:39:22 +0000 (18:39 +0000)
(LINE_PARSER): Set n_addrtype to AF_INET.

nss/nss_files/files-network.c

index ac5acd5c4ef94f5bb3e4a935d4cc68944ccbdaec..081ac1a443914fb15ea47dc66bcf99736ad9d1ea 100644 (file)
@@ -1,5 +1,5 @@
 /* Networks file parser in nss_files module.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -38,6 +38,7 @@ LINE_PARSER
 
    STRING_FIELD (addr, isspace, 1);
    result->n_net = inet_network (addr);
+   result->n_addrtype = AF_INET;
 
  })
 
@@ -52,4 +53,4 @@ DB_LOOKUP (netbyaddr, ,,
             if (result->n_addrtype == type && result->n_net == net)
               /* Bingo!  */
               break;
-          }, int type, unsigned long int net)
+          }, unsigned long int net, int type)