Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/adventure Minor tidyup.
details: https://anonhg.NetBSD.org/src/rev/d2a2df8b0a62
branches: trunk
changeset: 794717:d2a2df8b0a62
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Mar 22 22:04:40 2014 +0000
description:
Minor tidyup.
diffstat:
games/adventure/save.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r ff5adda9e9e1 -r d2a2df8b0a62 games/adventure/save.c
--- a/games/adventure/save.c Sat Mar 22 21:49:18 2014 +0000
+++ b/games/adventure/save.c Sat Mar 22 22:04:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.13 2012/01/08 18:16:00 dholland Exp $ */
+/* $NetBSD: save.c,v 1.14 2014/03/22 22:04:40 dholland Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.13 2012/01/08 18:16:00 dholland Exp $");
+__RCSID("$NetBSD: save.c,v 1.14 2014/03/22 22:04:40 dholland Exp $");
#endif
#endif /* not lint */
@@ -58,7 +58,7 @@
FILE *f;
const char *name;
bool warned;
- unsigned bintextpos;
+ size_t bintextpos;
uint32_t key;
struct crcstate crc;
unsigned char pad[8];
@@ -343,7 +343,7 @@
for (i=0; i<datalen; i++) {
val = val ^ 0xbadc0ffee;
val = (val << 4) | (val >> 60);
- val += udata[i] ^ 0xbeef;
+ val += udata[i] ^ 0xbeefU;
}
uval = (unsigned char *)&val;
@@ -454,7 +454,7 @@
struct compat_saveinfo {
void *address;
- int width;
+ size_t width;
};
static const struct compat_saveinfo compat_savearray[] =
@@ -530,7 +530,7 @@
const struct compat_saveinfo *p;
char *s;
long sum, cksum = 0;
- int i;
+ size_t i;
struct crcstate crc;
if ((in = fopen(infile, "rb")) == NULL) {
Home |
Main Index |
Thread Index |
Old Index