]> andersk Git - moira.git/commitdiff
have string_check return the string structure instead of just 1
authormar <mar>
Mon, 11 Sep 1989 12:15:03 +0000 (12:15 +0000)
committermar <mar>
Mon, 11 Sep 1989 12:15:03 +0000 (12:15 +0000)
dbck/phase3.qc

index 18a7f7ec01b3bd3630360dfbf97073af366d5cc9..0a85f74666cf850229329c47acb1257fbadee90f 100644 (file)
@@ -27,16 +27,16 @@ struct list *l;
  * increments the string reference count.
  */
 
-int string_check(id)
+struct string *string_check(id)
 int id;
 {
     register struct string *s;
 
     s = (struct string *) hash_lookup(strings, id);
     if (s == NULL)
-      return(0);
+      return(s);
     s->refc++;
-    return(1);
+    return(s);
 }
 
 
This page took 0.046541 seconds and 5 git commands to generate.