From: Ulrich Drepper Date: Sun, 25 Jan 1998 18:39:22 +0000 (+0000) Subject: Correct order of parameters for getnetbyaddr. X-Git-Tag: cvs/before-sparc-2_0_x-branch~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7756e8a9b5cb3f281908078a2ebeb8210fd031;p=thirdparty%2Fglibc.git Correct order of parameters for getnetbyaddr. (LINE_PARSER): Set n_addrtype to AF_INET. --- diff --git a/nss/nss_files/files-network.c b/nss/nss_files/files-network.c index ac5acd5c4ef..081ac1a4439 100644 --- a/nss/nss_files/files-network.c +++ b/nss/nss_files/files-network.c @@ -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)