diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-25 20:36:46 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-25 20:36:46 +0000 |
commit | 12b89d8501fe2a86297ee1df993368eda4a7fb81 (patch) | |
tree | b84a4ffbcce65cac30c01524ef5c051668c172cf /src/util/StringList.c | |
parent | e1b1ed9aaab66518a33dd5e344f20bfe4c38c16e (diff) |
Fixing some compiler warnings.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2250 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/StringList.c')
-rw-r--r-- | src/util/StringList.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/StringList.c b/src/util/StringList.c index b6badac6..d4c22c59 100644 --- a/src/util/StringList.c +++ b/src/util/StringList.c @@ -114,8 +114,9 @@ uStringList *Util_StringListCreate(int size) @returntype int @returndesc - 1 - added - 0 - duplicate + 1 - added + 0 - duplicate + -1 - internal error @endreturndesc @@*/ int Util_StringListAdd(uStringList *list, const char *item) @@ -134,6 +135,7 @@ int Util_StringListAdd(uStringList *list, const char *item) } else { + retval = -1; prev=NULL; for(this=list->head; this; this=this->next) { |