Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Useless cleanup
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 18 Aug 2004 19:19:03 +0000 (19:19 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 18 Aug 2004 19:19:03 +0000 (19:19 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@381 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/dict_elm.c

index 29f06e9..3652ec1 100644 (file)
@@ -643,12 +643,11 @@ gras_dictelm_set(gras_dictelm_t **pp_head,
 static 
 gras_error_t
 _gras_dictelm_get_rec(gras_dictelm_t *p_head,
 static 
 gras_error_t
 _gras_dictelm_get_rec(gras_dictelm_t *p_head,
-                          const char     *key,
-                          int             key_len,
-                          int             offset,
-                          /* OUT */void **data) {
-
-  gras_error_t errcode = no_error;
+                     const char     *key,
+                     int             key_len,
+                     int             offset,
+                     void **data) {
+  void *res;
 
   CDEBUG3(dict_search, "Search %.*s in %p", key_len, key, p_head); 
 
 
   CDEBUG3(dict_search, "Search %.*s in %p", key_len, key, p_head); 
 
@@ -658,7 +657,7 @@ _gras_dictelm_get_rec(gras_dictelm_t *p_head,
   if (offset >= key_len) {
     *data = p_head->content;
 
   if (offset >= key_len) {
     *data = p_head->content;
 
-    return errcode;
+    return no_error;
   }
 
   {
   }
 
   {
@@ -682,7 +681,7 @@ _gras_dictelm_get_rec(gras_dictelm_t *p_head,
         gras_dynar_get(p_head->sub, pos, &p_child);
         *data = p_child->content;
 
         gras_dynar_get(p_head->sub, pos, &p_child);
         *data = p_child->content;
 
-        return errcode;
+        return no_error;
       }
 
     case 2: /* A child constitutes a prefix of the key => recurse */
       }
 
     case 2: /* A child constitutes a prefix of the key => recurse */