Module Name: src
Committed By: lukem
Date: Tue Apr 14 06:15:37 UTC 2009
Modified Files:
src/usr.bin/utoppya: utoppya.c
Log Message:
fix sign-compare issues
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/utoppya/utoppya.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/utoppya/utoppya.c
diff -u src/usr.bin/utoppya/utoppya.c:1.3 src/usr.bin/utoppya/utoppya.c:1.4
--- src/usr.bin/utoppya/utoppya.c:1.3 Mon Apr 28 20:24:15 2008
+++ src/usr.bin/utoppya/utoppya.c Tue Apr 14 06:15:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: utoppya.c,v 1.3 2008/04/28 20:24:15 martin Exp $ */
+/* $NetBSD: utoppya.c,v 1.4 2009/04/14 06:15:37 lukem Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -438,7 +438,7 @@
rv = fwrite(buf, 1, l, ofp);
- if (rv != l) {
+ if (rv != (size_t)l) {
if (ofp != stdout)
fclose(ofp);
progressmeter(1);
@@ -552,7 +552,7 @@
while ((l = fread(buf, 1, TOPPY_IO_SIZE, ifp)) > 0) {
rv = write(toppy_fd, buf, l);
- if (rv != l) {
+ if ((size_t)rv != l) {
fclose(ifp);
if (progbar)
progressmeter(1);