From f53201d96eed2e1679e9c319ff1b11d6f46c8370 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 14 Aug 2011 15:39:28 +0000 Subject: remove unused variable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1505 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/networks.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nss') diff --git a/nss/networks.c b/nss/networks.c index 1b407de..4237ab4 100644 --- a/nss/networks.c +++ b/nss/networks.c @@ -2,7 +2,7 @@ networks.c - NSS lookup functions for networks database Copyright (C) 2006 West Consulting - Copyright (C) 2006, 2007, 2008, 2010 Arthur de Jong + Copyright (C) 2006, 2007, 2008, 2010, 2011 Arthur de Jong Copyright (C) 2010 Symas Corporation This library is free software; you can redistribute it and/or @@ -68,7 +68,7 @@ static nss_status_t read_netent( char *buffer,size_t buflen,int *errnop,int *h_errnop) { int32_t tmpint32,tmp2int32,tmp3int32; - int32_t numaddr,i; + int32_t numaddr; int readaf; size_t bufptr=0; nss_status_t retv=NSS_STATUS_NOTFOUND; @@ -79,12 +79,11 @@ static nss_status_t read_netent( /* read number of addresses to follow */ READ_TYPE(fp,numaddr,int32_t); /* go through the address list and filter on af */ - i=0; while (--numaddr>=0) { /* read address family and size */ READ_INT32(fp,readaf); - READ_INT32(fp,tmp2int32); + READ_INT32(fp,tmp2int32); /* address length */ if ((readaf==AF_INET)&&(tmp2int32==4)) { /* read address and translate to host byte order */ -- cgit v1.2.3