Prints the full hash table error in stderr.
authorFrancois Fleuret <francois@fleuret.org>
Mon, 10 Oct 2011 06:48:05 +0000 (08:48 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 10 Oct 2011 06:48:05 +0000 (08:48 +0200)
selector.c

index 2b51cf6..7f64eba 100644 (file)
@@ -291,7 +291,8 @@ int add_and_get_previous_index(struct hash_table_t *hash_table,
     /* We came back to our original code, which means that the table
        is full */
     if(code == start) {
-      printf("Full hash table (that should not happen)\n");
+      fprintf(stderr,
+              "Full hash table (that should not happen)\n");
       exit(EXIT_FAILURE);
    }
   }