(hash_print) [TESTING]: Clean up.

This commit is contained in:
Jim Meyering 2001-11-01 15:55:53 +00:00
parent 85431d93ed
commit 74b63f68dd

View File

@ -995,13 +995,14 @@ hash_print (const Hash_table *table)
struct hash_entry *cursor;
if (bucket)
printf ("%d:\n", slot);
printf ("%d:\n", bucket - table->bucket);
for (cursor = bucket; cursor; cursor = cursor->next)
{
char *s = (char *) cursor->data;
/* FIXME */
printf (" %s\n", s);
if (s)
printf (" %s\n", s);
}
}
}