nss-pam-ldapd commit: r1505 - nss-pam-ldapd/nss
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1505 - nss-pam-ldapd/nss
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1505 - nss-pam-ldapd/nss
- Date: Sun, 14 Aug 2011 17:39:31 +0200 (CEST)
Author: arthur
Date: Sun Aug 14 17:39:28 2011
New Revision: 1505
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1505
Log:
remove unused variable
Modified:
nss-pam-ldapd/nss/networks.c
Modified: nss-pam-ldapd/nss/networks.c
==============================================================================
--- nss-pam-ldapd/nss/networks.c Sun Aug 14 16:09:59 2011 (r1504)
+++ nss-pam-ldapd/nss/networks.c Sun Aug 14 17:39:28 2011 (r1505)
@@ -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 @@
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 @@
/* 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 */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1505 - nss-pam-ldapd/nss,
Commits of the nss-pam-ldapd project