Module Name: src Committed By: dholland Date: Sun Jun 7 20:30:49 UTC 2009
Modified Files: src/games/hack: hack.engrave.c Log Message: remove unnecessary casts To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/games/hack/hack.engrave.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/hack/hack.engrave.c diff -u src/games/hack/hack.engrave.c:1.7 src/games/hack/hack.engrave.c:1.8 --- src/games/hack/hack.engrave.c:1.7 Sun Jun 7 18:30:39 2009 +++ src/games/hack/hack.engrave.c Sun Jun 7 20:30:49 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: hack.engrave.c,v 1.7 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.engrave.c,v 1.8 2009/06/07 20:30:49 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.engrave.c,v 1.7 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.engrave.c,v 1.8 2009/06/07 20:30:49 dholland Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -345,11 +345,11 @@ ep = ep->nxt_engr; continue; } - bwrite(fd, (char *) &(ep->engr_lth), sizeof(ep->engr_lth)); - bwrite(fd, (char *) ep, sizeof(struct engr) + ep->engr_lth); + bwrite(fd, &(ep->engr_lth), sizeof(ep->engr_lth)); + bwrite(fd, ep, sizeof(struct engr) + ep->engr_lth); ep = ep->nxt_engr; } - bwrite(fd, (char *) nul, sizeof(unsigned)); + bwrite(fd, nul, sizeof(unsigned)); head_engr = 0; }