diff options
Diffstat (limited to 'nss/nss_dns/dns-network.c')
-rw-r--r-- | nss/nss_dns/dns-network.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/nss/nss_dns/dns-network.c b/nss/nss_dns/dns-network.c index a2d9d280a5..d91c1bdc82 100644 --- a/nss/nss_dns/dns-network.c +++ b/nss/nss_dns/dns-network.c @@ -1,21 +1,21 @@ /* Copyright (C) 1996 Free Software Foundation, Inc. -This file is part of the GNU C Library. -Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996. + This file is part of the GNU C Library. + Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ /* Parts of this file are plain copies of the file `getnetnamadr.c' from the bind package and it has the following copyright. */ @@ -97,12 +97,12 @@ typedef union querybuf /* Protortypes for local functions. */ -static int getanswer_r (const querybuf *answer, int anslen, - struct netent *result, char *buffer, int buflen, - lookup_method net_i); +static enum nss_status getanswer_r (const querybuf *answer, int anslen, + struct netent *result, char *buffer, + int buflen, lookup_method net_i); -int +enum nss_status _nss_dns_getnetbyname_r (const char *name, struct netent *result, char *buffer, int buflen) { @@ -125,12 +125,12 @@ _nss_dns_getnetbyname_r (const char *name, struct netent *result, } -int +enum nss_status _nss_dns_getnetbyaddr_r (long net, int type, struct netent *result, char *buffer, int buflen) { /* Return entry for network with NAME. */ - int status; + enum nss_status status; querybuf net_buffer; unsigned int net_bytes[4]; char qbuf[MAXDNAME]; @@ -194,7 +194,7 @@ _nss_dns_getnetbyaddr_r (long net, int type, struct netent *result, #undef offsetof #define offsetof(Type, Member) ((size_t) &((Type *) NULL)->Member) -static int +static enum nss_status getanswer_r (const querybuf *answer, int anslen, struct netent *result, char *buffer, int buflen, lookup_method net_i) { |