From 5615eaf26469f20c2d8c3be5770e12564a1edfff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 10 Jun 2011 12:45:09 -0700 Subject: Quash some new warnings from GCC 4.6. --- inet/getnetgrent_r.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'inet') diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c index 38701857cb..0bac7b770e 100644 --- a/inet/getnetgrent_r.c +++ b/inet/getnetgrent_r.c @@ -1,5 +1,5 @@ -/* Copyright (C) 1996, 1997, 1998, 1999, 2002, 2004, 2005, 2007 - Free Software Foundation, Inc. +/* Copyright (C) 1996,1997,1998,1999,2002,2004,2005,2007,2011 + 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 @@ -347,7 +347,6 @@ innetgr (const char *netgroup, const char *host, const char *user, struct __netgrent entry; int result = 0; const char *current_group = netgroup; - int real_entry = 0; memset (&entry, '\0', sizeof (entry)); @@ -404,8 +403,6 @@ innetgr (const char *netgroup, const char *host, const char *user, } else { - real_entry = 1; - if ((entry.val.triple.host == NULL || host == NULL || __strcasecmp (entry.val.triple.host, host) == 0) && (entry.val.triple.user == NULL || user == NULL -- cgit v1.2.1