You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/11/24 04:58:22 UTC

svn commit: r348633 - /webservices/axis2/trunk/c/modules/util/src/hash.c

Author: samisa
Date: Wed Nov 23 19:58:16 2005
New Revision: 348633

URL: http://svn.apache.org/viewcvs?rev=348633&view=rev
Log:
Fixed some warnings

Modified:
    webservices/axis2/trunk/c/modules/util/src/hash.c

Modified: webservices/axis2/trunk/c/modules/util/src/hash.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/src/hash.c?rev=348633&r1=348632&r2=348633&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/src/hash.c (original)
+++ webservices/axis2/trunk/c/modules/util/src/hash.c Wed Nov 23 19:58:16 2005
@@ -503,24 +503,24 @@
     return res;
 }
 
-static void
+static axis2_status_t
 axis2_hash_entry_free (axis2_env_t **environment, axis2_hash_entry_t *hash_entry)
 {
-    AXIS2_ENV_CHECK(environment, NULL);
+    AXIS2_ENV_CHECK(environment, AXIS2_FAILURE);
     if (!hash_entry)
-        return;
+        return AXIS2_FAILURE;
     if (hash_entry->next)
     {
         axis2_hash_entry_free (environment, hash_entry->next);
     }
     AXIS2_FREE ((*environment)->allocator, hash_entry);
-    return;
+    return AXIS2_SUCCESS;
 }
 
 AXIS2_DECLARE(axis2_status_t)
 axis2_hash_free (axis2_hash_t *ht, axis2_env_t** environment)
 {
-    AXIS2_ENV_CHECK(environment, NULL);
+    AXIS2_ENV_CHECK(environment, AXIS2_FAILURE);
     if (ht)
     {
         if (ht->free)