harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r662688 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/inetadds.c
Date Tue, 03 Jun 2008 08:14:21 GMT
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);
 }



Mime
View raw message