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/03 10:14:21 UTC

svn commit: r662688 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c

Author: hindessm
Date: Tue Jun  3 01:14:21 2008
New Revision: 662688

URL: http://svn.apache.org/viewvc?rev=662688&view=rev
Log:
Avoid pointlessly casting pointer to integer type.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c?rev=662688&r1=662687&r2=662688&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c Tue Jun  3 01:14:21 2008
@@ -267,14 +267,14 @@
 
   if (NULL == strHost)
     {
-      return (jint) NULL;
+      return (jint) 0;
     }
   result = hysock_inetaddr ((char *) strHost, &nipAddr);        /* Resolve the dotted ip string to an address */
   (*env)->ReleaseStringUTFChars (env, host, strHost);
   if (0 != result)
     {
       throwJavaNetUnknownHostException (env, result);
-      return (jint) NULL;
+      return (jint) 0;
     }
   return (jint) hysock_ntohl (nipAddr);
 }