Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.bin/cksum Pull up revision 1.19 (requested by klein...



details:   https://anonhg.NetBSD.org/src/rev/a31ff9c1a63f
branches:  netbsd-1-6
changeset: 531035:a31ff9c1a63f
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Dec 21 08:13:20 2003 +0000

description:
Pull up revision 1.19 (requested by kleink in ticket #1580):
Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).

diffstat:

 usr.bin/cksum/cksum.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r fddd21282a32 -r a31ff9c1a63f usr.bin/cksum/cksum.c
--- a/usr.bin/cksum/cksum.c     Sun Dec 21 08:13:15 2003 +0000
+++ b/usr.bin/cksum/cksum.c     Sun Dec 21 08:13:20 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cksum.c,v 1.16 2002/03/31 14:43:22 bjh21 Exp $ */
+/*     $NetBSD: cksum.c,v 1.16.2.1 2003/12/21 08:13:20 tron Exp $      */
 
 /*-
  * Copyright (c) 1997 Jason R. Thorpe.  All rights reserved.
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)cksum.c    8.2 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: cksum.c,v 1.16 2002/03/31 14:43:22 bjh21 Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.16.2.1 2003/12/21 08:13:20 tron Exp $");
 #endif /* not lint */
 
 #include <sys/cdefs.h>
@@ -115,11 +115,12 @@
        char **argv;
 {
        register int ch, fd, rval, dosum, pflag, nohashstdin;
-       u_int32_t len, val;
+       u_int32_t val;
+       off_t len;
        char *fn;
        const char *progname;
-       int (*cfncn) __P((int, u_int32_t *, u_int32_t *));
-       void (*pfncn) __P((char *, u_int32_t, u_int32_t));
+       int (*cfncn) __P((int, u_int32_t *, off_t *));
+       void (*pfncn) __P((char *, u_int32_t, off_t));
        struct hash *hash;
 
        cfncn = NULL;



Home | Main Index | Thread Index | Old Index