summaryrefslogtreecommitdiffstats
path: root/hack/hack.shk.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-08-06 20:29:37 +0000
committerdholland <dholland@NetBSD.org>2011-08-06 20:29:37 +0000
commit1ccd85363abc2600565c4e1acfcefd0628997538 (patch)
treedf1453129a42f7ee08bfeb3e303d2215f16e6c4a /hack/hack.shk.c
parent10b5de29f245af86f4a46e1633e1902332b2ad06 (diff)
downloadbsdgames-darwin-1ccd85363abc2600565c4e1acfcefd0628997538.tar.gz
bsdgames-darwin-1ccd85363abc2600565c4e1acfcefd0628997538.tar.zst
bsdgames-darwin-1ccd85363abc2600565c4e1acfcefd0628997538.zip
Remove more silly casts.
Diffstat (limited to 'hack/hack.shk.c')
-rw-r--r--hack/hack.shk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hack/hack.shk.c b/hack/hack.shk.c
index 26f860c7..ee873518 100644
--- a/hack/hack.shk.c
+++ b/hack/hack.shk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.shk.c,v 1.11 2009/08/12 07:28:41 dholland Exp $ */
+/* $NetBSD: hack.shk.c,v 1.12 2011/08/06 20:29:37 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.shk.c,v 1.11 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.shk.c,v 1.12 2011/08/06 20:29:37 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -89,7 +89,7 @@ struct obj *billobjs = 0;
void
obfree(struct obj *obj, struct obj *merge)
{
- free((char *) obj);
+ free(obj);
}
int
inshop(void) {
@@ -237,7 +237,7 @@ setpaid(void)
obj->unpaid = 0;
while ((obj = billobjs) != NULL) {
billobjs = obj->nobj;
- free((char *) obj);
+ free(obj);
}
ESHK(shopkeeper)->billct = 0;
}
@@ -419,7 +419,7 @@ obfree(struct obj *obj, struct obj *merge)
*bp = bill[ESHK(shopkeeper)->billct];
}
}
- free((char *) obj);
+ free(obj);
}
static void
@@ -603,7 +603,7 @@ dopayobj(struct bill_x *bp)
else
pline("Error in shopkeeper administration.");
}
- free((char *) obj);
+ free(obj);
}
return (1);
}