Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 50827 invoked from network); 11 Jun 2008 21:13:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 21:13:14 -0000 Received: (qmail 88687 invoked by uid 500); 11 Jun 2008 21:13:17 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 88667 invoked by uid 500); 11 Jun 2008 21:13:17 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 88656 invoked by uid 99); 11 Jun 2008 21:13:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 14:13:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 21:12:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E809D23889F1; Wed, 11 Jun 2008 14:12:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r666845 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Date: Wed, 11 Jun 2008 21:12:53 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080611211253.E809D23889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Wed Jun 11 14:12:53 2008 New Revision: 666845 URL: http://svn.apache.org/viewvc?rev=666845&view=rev Log: Remove unused variable. Use err variable from function scope rather than declare a new one. Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c?rev=666845&r1=666844&r2=666845&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c (original) +++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Wed Jun 11 14:12:53 2008 @@ -3900,7 +3900,6 @@ I_32 err = 0; #if (defined(HAS_RTNETLINK)) - struct rtattr *rta; U_32 sendLength = 0; struct linkReq_struct linkRequest; struct addrReq_struct addrRequest; @@ -3954,7 +3953,7 @@ /* send the request and count the number of interfaces */ if (sendLength != linkRequest.netlinkHeader.nlmsg_len) { - I_32 err = errno; + err = errno; close (netlinkSocketHandle); hysock_cleanupNetlinkContext(portLibrary, &netlinkContext);