summaryrefslogtreecommitdiffstats
path: root/games/hack/hack.o_init.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-03-11 08:05:15 +0000
committerguenther <guenther@openbsd.org>2014-03-11 08:05:15 +0000
commitebf3d589a8c26b74d169ae56dc1cd5127550a23c (patch)
treea1ba50e508fb2d056069203a7e8ec78213658c5d /games/hack/hack.o_init.c
parentWelcome to 1989: we can ask for signed chars when we want them (diff)
downloadwireguard-openbsd-ebf3d589a8c26b74d169ae56dc1cd5127550a23c.tar.xz
wireguard-openbsd-ebf3d589a8c26b74d169ae56dc1cd5127550a23c.zip
Match bwrite()'s prototype with write()'s, zapping a lint comment
Delete casts to char* of arguments to bwrite() and free()
Diffstat (limited to 'games/hack/hack.o_init.c')
-rw-r--r--games/hack/hack.o_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/hack/hack.o_init.c b/games/hack/hack.o_init.c
index ee4c0c27e04..814576f10be 100644
--- a/games/hack/hack.o_init.c
+++ b/games/hack/hack.o_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.o_init.c,v 1.5 2009/10/27 23:59:25 deraadt Exp $ */
+/* $OpenBSD: hack.o_init.c,v 1.6 2014/03/11 08:05:15 guenther Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -175,15 +175,15 @@ savenames(int fd)
int i;
unsigned 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 */
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);
}
}