hash.h: update the description of FindList quakefs.c: didn't need va there

This is an imperfect revision of history.
This commit is contained in:
Bill Currie 2004-11-02 07:39:00 +00:00 committed by Jeff Teunissen
parent 9768568eeb
commit 9a5cce7c14
2 changed files with 4 additions and 2 deletions

View file

@ -105,7 +105,9 @@ void *Hash_FindElement (hashtab_t *tab, void *ele);
tab: the table to search
key: the key string identifying the elements being searched for
returns a null terminated list of element pointers if at least one found,
otherwise 0.
otherwise 0. returned list is guaranteed to be in reverse order of
insertion. ie, deleting items from the list in list order will delete the
correct items.
*/
void **Hash_FindList (hashtab_t *tab, const char *key);
void **Hash_FindElementList (hashtab_t *tab, void *ele);

View file

@ -1066,7 +1066,7 @@ QFS_LoadGameDirectory (const char *dir)
pak = QFS_LoadPackFile (pakfiles[i]);
if (!pak) {
Sys_Error (va ("Bad pakfile %s!!", pakfiles[i]));
Sys_Error ("Bad pakfile %s!!", pakfiles[i]);
} else {
search = calloc (1, sizeof (searchpath_t));
search->pack = pak;