From e0e186091a777dfe9cf3c22deeff989f459d8db9 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 10 Feb 1999 00:29:21 +0000 Subject: The patch below does some minor cleanup of adventure(6): an additional use of const I missed in bin/6041; avoiding a signed/unsigned warning; marking an unused parameter as such; revoking setgid privileges (including the saved gid) rather than setuid ones; includes and function prototypes in setup.c; the string passed to err() should not end with a `.'. Together with the patch sent concerning adventure's EOF handling, this synchronises adventure(6) in NetBSD with the Linux port of the NetBSD games. Via PR 6557 by Joseph Myers --- adventure/crc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'adventure/crc.c') diff --git a/adventure/crc.c b/adventure/crc.c index b80b1263..2e000992 100644 --- a/adventure/crc.c +++ b/adventure/crc.c @@ -1,4 +1,4 @@ -/* $NetBSD: crc.c,v 1.6 1998/09/13 00:07:24 hubertf Exp $ */ +/* $NetBSD: crc.c,v 1.7 1999/02/10 00:29:21 hubertf Exp $ */ /*- * Copyright (c) 1993 @@ -42,13 +42,13 @@ static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 5/31/93"; static char ORIGINAL_sccsid[] = "@(#)crc.c 5.2 (Berkeley) 4/4/91"; #else -__RCSID("$NetBSD: crc.c,v 1.6 1998/09/13 00:07:24 hubertf Exp $"); +__RCSID("$NetBSD: crc.c,v 1.7 1999/02/10 00:29:21 hubertf Exp $"); #endif #endif /* not lint */ #include "extern.h" -unsigned long crctab[] = { +const unsigned long crctab[] = { 0x7fffffff, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, @@ -111,7 +111,7 @@ unsigned long crctab[] = { */ unsigned long crcval; -int step; +unsigned int step; void crc_start() -- cgit v1.2.3-56-ge451