From f56ab00e21d175ef62608342f185c5e7977be078 Mon Sep 17 00:00:00 2001 From: goodale Date: Wed, 3 Nov 1999 09:23:10 +0000 Subject: Changing various things pointed to by compiling with -Wall. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1129 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/util/StoreHandledData.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/util/StoreHandledData.c') diff --git a/src/util/StoreHandledData.c b/src/util/StoreHandledData.c index fecc37d8..c3894e37 100644 --- a/src/util/StoreHandledData.c +++ b/src/util/StoreHandledData.c @@ -98,7 +98,6 @@ int Util_NewHandle(cHandledData **storage, const char *name, void *data) /* Record position of first unused array element. */ (*storage)->first_unused = (*storage)->array_size; - } } else @@ -124,9 +123,13 @@ int Util_NewHandle(cHandledData **storage, const char *name, void *data) /* Change pointer to first unused array element. */ (*storage)->first_unused = FindNextUnused(*storage, (*storage)->first_unused); - }; - }; - }; + } + } + } + else + { + return_code = -1; + } return return_code; -- cgit v1.2.3