Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 97892 invoked from network); 18 May 2009 20:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 20:58:52 -0000 Received: (qmail 42853 invoked by uid 500); 18 May 2009 20:58:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42812 invoked by uid 500); 18 May 2009 20:58:51 -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 42160 invoked by uid 99); 18 May 2009 20:58:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 20:58:49 +0000 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; Mon, 18 May 2009 20:58:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 735DB23888E8; Mon, 18 May 2009 20:58:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r776092 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Date: Mon, 18 May 2009 20:58:25 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090518205825.735DB23888E8@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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