Module Name:    src
Committed By:   agc
Date:           Sat Jan  1 22:29:01 UTC 2011

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: reader.c

Log Message:
get rid of some lint on amd64 platform


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 \
    src/crypto/external/bsd/netpgp/dist/src/lib/reader.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/netpgp/dist/src/lib/reader.c
diff -u src/crypto/external/bsd/netpgp/dist/src/lib/reader.c:1.47 src/crypto/external/bsd/netpgp/dist/src/lib/reader.c:1.48
--- src/crypto/external/bsd/netpgp/dist/src/lib/reader.c:1.47	Mon Nov 29 04:20:12 2010
+++ src/crypto/external/bsd/netpgp/dist/src/lib/reader.c	Sat Jan  1 22:29:00 2011
@@ -54,7 +54,7 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: reader.c,v 1.47 2010/11/29 04:20:12 agc Exp $");
+__RCSID("$NetBSD: reader.c,v 1.48 2011/01/01 22:29:00 agc Exp $");
 #endif
 
 #include <sys/types.h>
@@ -144,7 +144,7 @@
 		(void) fprintf(stderr, "fd_reader: coalesced data, off %d\n",
 				stream->virtualoff);
 	}
-	n = MIN(stream->virtualc - stream->virtualoff, length);
+	n = MIN(stream->virtualc - stream->virtualoff, (unsigned)length);
 	(void) memcpy(dest, &stream->virtualpkt[stream->virtualoff], n);
 	stream->virtualoff += n;
 	if (stream->virtualoff == stream->virtualc) {

Reply via email to