summaryrefslogtreecommitdiff
path: root/src/util/StoreHandledData.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-03 09:23:10 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-03 09:23:10 +0000
commitf56ab00e21d175ef62608342f185c5e7977be078 (patch)
tree1bfc0473e7f51b54d1b276af0efb3ebe41238377 /src/util/StoreHandledData.c
parent52b81606de9ddb65dd608424354a28a856a5daef (diff)
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
Diffstat (limited to 'src/util/StoreHandledData.c')
-rw-r--r--src/util/StoreHandledData.c11
1 files changed, 7 insertions, 4 deletions
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;