harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
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 GMT
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);
       



Mime
View raw message