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 2009/05/18 22:58:25 UTC

svn commit: r776092 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c

Author: hindessm
Date: Mon May 18 20:58:25 2009
New Revision: 776092

URL: http://svn.apache.org/viewvc?rev=776092&view=rev
Log:
Move "#if NO_R" to avoid empty static unused function and hopefully don't
break Nathan on OS/X.

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=776092&r1=776091&r2=776092&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 Mon May 18 20:58:25 2009
@@ -119,9 +119,6 @@
                         struct netlinkContext_struct *netlinkContext,
                         struct nlmsghdr **nextMessage);
 
-static I_32 copy_hostent (struct HyPortLibrary *portLibrary,
-                          OSHOSTENT * source, PortlibPTBuffers_t * ptBuffers);
-
 I_32 platformSocketLevel (I_32 portableSocketLevel);
 
 static I_32 findError (I_32 errorCode);
@@ -136,13 +133,16 @@
 
 #undef CDEV_CURRENT_FUNCTION
 
+#if NO_R
+static I_32 copy_hostent (struct HyPortLibrary *portLibrary,
+                          OSHOSTENT * source, PortlibPTBuffers_t * ptBuffers);
+
 #define CDEV_CURRENT_FUNCTION copy_hostent
 
 static I_32
 copy_hostent (struct HyPortLibrary *portLibrary, OSHOSTENT * source,
               PortlibPTBuffers_t * ptBuffers)
 {
-#if NO_R
   int h_len = strlen (source->h_name);
   int total = 0;
   int i = 0;
@@ -184,12 +184,11 @@
     }
   dest->h_addr_list[i] = NULL;
 
-#endif
-
   return 0;
 }
 
 #undef CDEV_CURRENT_FUNCTION
+#endif
 
 #define CDEV_CURRENT_FUNCTION findError