diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-12-15 06:40:40 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-12-15 06:40:40 +0000 |
commit | 0dd67692b6f70badeb721a764c2aa7e9de9f2379 (patch) | |
tree | 289a82be345b72a7c41aa7c0602b1f702988b8d6 /games/phantasia/main.c | |
parent | ea79f035d22993eb20b874e04a422397bf0f3be2 (diff) |
as of 1989, fread/fwrite take void *, so there's no need to cast to char *.
Diffstat (limited to 'games/phantasia/main.c')
-rw-r--r-- | games/phantasia/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/phantasia/main.c b/games/phantasia/main.c index 52f9d23e46c..0b5348474b1 100644 --- a/games/phantasia/main.c +++ b/games/phantasia/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.13 2003/04/25 21:37:47 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.14 2010/12/15 06:40:39 tedu Exp $ */ /* $NetBSD: main.c,v 1.3 1995/04/24 12:24:37 cgd Exp $ */ /* @@ -788,7 +788,7 @@ titlelist() } /* search for king */ fseek(Playersfp, 0L, SEEK_SET); - while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) + while (fread(&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) if (Other.p_specialtype == SC_KING && Other.p_status != S_NOTUSED) /* found the king */ @@ -805,7 +805,7 @@ titlelist() /* search for valar */ fseek(Playersfp, 0L, SEEK_SET); - while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) + while (fread(&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) if (Other.p_specialtype == SC_VALAR && Other.p_status != S_NOTUSED) /* found the valar */ { @@ -818,7 +818,7 @@ titlelist() /* search for council of the wise */ fseek(Playersfp, 0L, SEEK_SET); Lines = 10; - while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) + while (fread(&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) if (Other.p_specialtype == SC_COUNCIL && Other.p_status != S_NOTUSED) /* found a member of the council */ { @@ -837,7 +837,7 @@ titlelist() nxtlvl = hilvl = 0; fseek(Playersfp, 0L, SEEK_SET); - while (fread((char *) &Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) + while (fread(&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) if (Other.p_experience > hiexp && Other.p_specialtype <= SC_KING && Other.p_status != S_NOTUSED) /* highest found so far */ { |