From 9a5cce7c14b27dd4a9099a5aff65beffbd09c74d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 2 Nov 2004 07:39:00 +0000 Subject: [PATCH] hash.h: update the description of FindList quakefs.c: didn't need va there This is an imperfect revision of history. --- include/QF/hash.h | 4 +++- libs/util/quakefs.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/QF/hash.h b/include/QF/hash.h index 67b17a8d2..90923c0a0 100644 --- a/include/QF/hash.h +++ b/include/QF/hash.h @@ -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); diff --git a/libs/util/quakefs.c b/libs/util/quakefs.c index 84e78de8f..8a7bd8b2d 100644 --- a/libs/util/quakefs.c +++ b/libs/util/quakefs.c @@ -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;