aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/makerank.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c
index 90a5c22..dd936fb 100644
--- a/FICS/makerank.c
+++ b/FICS/makerank.c
@@ -125,17 +125,15 @@ LoadEntries(void)
if (GetPlayerInfo(pathInput, &e)) {
if ((list[n] = malloc(sizeof(ENTRY))) ==
- NULL) {
- fprintf(stderr, "malloc() failed!\n");
- } else {
- memcpy(list[n], &e, sizeof(ENTRY));
-
- if (++n == listsize) {
- listsize += 100;
- list = realloc(list,
- listsize *
- sizeof(ENTRY *));
- }
+ NULL)
+ err(1, "%s: malloc", __func__);
+
+ memcpy(list[n], &e, sizeof(ENTRY));
+
+ if (++n == listsize) {
+ listsize += 100;
+ list = realloc(list, listsize *
+ sizeof(ENTRY *));
}
}
}