Module Name: src
Committed By: uebayasi
Date: Wed Oct 29 18:09:35 UTC 2014
Modified Files:
src/usr.bin/cksum: crc.c
Log Message:
Fix build.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/cksum/crc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/cksum/crc.c
diff -u src/usr.bin/cksum/crc.c:1.18 src/usr.bin/cksum/crc.c:1.19
--- src/usr.bin/cksum/crc.c:1.18 Mon Sep 4 20:01:10 2006
+++ src/usr.bin/cksum/crc.c Wed Oct 29 18:09:35 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: crc.c,v 1.18 2006/09/04 20:01:10 dsl Exp $ */
+/* $NetBSD: crc.c,v 1.19 2014/10/29 18:09:35 uebayasi Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93";
#else
-__RCSID("$NetBSD: crc.c,v 1.18 2006/09/04 20:01:10 dsl Exp $");
+__RCSID("$NetBSD: crc.c,v 1.19 2014/10/29 18:09:35 uebayasi Exp $");
#endif
#endif /* not lint */
@@ -115,7 +115,7 @@ int
crc(int fd, u_int32_t *cval, off_t *clen)
{
u_char *p;
- int nr;
+ ssize_t nr;
u_int32_t thecrc;
off_t len;
u_char buf[16 * 1024];