summaryrefslogtreecommitdiffstats
path: root/hack/hack.o_init.c
diff options
context:
space:
mode:
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);
}
}