summaryrefslogtreecommitdiffstats
path: root/hack/hack.o_init.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-08-06 20:32:25 +0000
committerdholland <dholland@NetBSD.org>2011-08-06 20:32:25 +0000
commitc01c2acdb28beaea904ac85b7433c7c1a5c30e99 (patch)
treee7270a259684be543dc3c474a77768839d6b79dd /hack/hack.o_init.c
parent1ccd85363abc2600565c4e1acfcefd0628997538 (diff)
downloadbsdgames-darwin-c01c2acdb28beaea904ac85b7433c7c1a5c30e99.tar.gz
bsdgames-darwin-c01c2acdb28beaea904ac85b7433c7c1a5c30e99.tar.zst
bsdgames-darwin-c01c2acdb28beaea904ac85b7433c7c1a5c30e99.zip
Remove *another* set of useless casts. sheesh
Diffstat (limited to 'hack/hack.o_init.c')
-rw-r--r--hack/hack.o_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.o_init.c b/hack/hack.o_init.c
index 6db5a45b..47284544 100644
--- a/hack/hack.o_init.c
+++ b/hack/hack.o_init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.o_init.c,v 1.12 2011/08/06 20:18:26 dholland Exp $ */
+/* $NetBSD: hack.o_init.c,v 1.13 2011/08/06 20:32:25 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.o_init.c,v 1.12 2011/08/06 20:18:26 dholland Exp $");
+__RCSID("$NetBSD: hack.o_init.c,v 1.13 2011/08/06 20:32:25 dholland Exp $");
#endif /* not lint */
#include <string.h>
@@ -181,8 +181,8 @@ savenames(int fd)
{
int i;
size_t len;
- bwrite(fd, (char *) bases, sizeof bases);
- bwrite(fd, (char *) objects, sizeof objects);
+ bwrite(fd, bases, sizeof bases);
+ bwrite(fd, objects, sizeof objects);
/*
* as long as we use only one version of Hack/Quest we need not save
* oc_name and oc_descr, but we must save oc_uname for all objects
@@ -190,7 +190,7 @@ savenames(int fd)
for (i = 0; i < SIZE(objects); i++) {
if (objects[i].oc_uname) {
len = strlen(objects[i].oc_uname) + 1;
- bwrite(fd, (char *) &len, sizeof len);
+ bwrite(fd, &len, sizeof len);
bwrite(fd, objects[i].oc_uname, len);
}
}