You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/06/11 23:12:53 UTC
svn commit: r666845 -
/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c
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);