diff options
author | dholland <dholland@NetBSD.org> | 2011-08-06 20:00:33 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2011-08-06 20:00:33 +0000 |
commit | a96166e2f80ef376b0a2cdea16f09df48fe56d8c (patch) | |
tree | 766dc3c03b9d1663a43f8924411ecae004140793 /hack/hack.o_init.c | |
parent | a7909ab462c395e8a671147fc801b7426b1273f5 (diff) | |
download | bsdgames-darwin-a96166e2f80ef376b0a2cdea16f09df48fe56d8c.tar.gz bsdgames-darwin-a96166e2f80ef376b0a2cdea16f09df48fe56d8c.tar.zst bsdgames-darwin-a96166e2f80ef376b0a2cdea16f09df48fe56d8c.zip |
Remove silly casts.
Diffstat (limited to 'hack/hack.o_init.c')
-rw-r--r-- | hack/hack.o_init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.o_init.c b/hack/hack.o_init.c index 804f0a0a..7b38ab16 100644 --- a/hack/hack.o_init.c +++ b/hack/hack.o_init.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.o_init.c,v 1.10 2009/08/12 07:28:41 dholland Exp $ */ +/* $NetBSD: hack.o_init.c,v 1.11 2011/08/06 20:00:33 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.10 2009/08/12 07:28:41 dholland Exp $"); +__RCSID("$NetBSD: hack.o_init.c,v 1.11 2011/08/06 20:00:33 dholland Exp $"); #endif /* not lint */ #include <string.h> @@ -201,11 +201,11 @@ restnames(int fd) { int i; unsigned len; - mread(fd, (char *) bases, sizeof bases); - mread(fd, (char *) objects, sizeof objects); + mread(fd, bases, sizeof bases); + mread(fd, objects, sizeof objects); for (i = 0; i < SIZE(objects); i++) if (objects[i].oc_uname) { - mread(fd, (char *) &len, sizeof len); + mread(fd, &len, sizeof len); objects[i].oc_uname = (char *) alloc(len); mread(fd, objects[i].oc_uname, len); } |