Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/bzip2/dist fix unused variable warnings
details: https://anonhg.NetBSD.org/src/rev/8e92dab674c5
branches: trunk
changeset: 790751:8e92dab674c5
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 03:14:21 2013 +0000
description:
fix unused variable warnings
diffstat:
external/bsd/bzip2/dist/bzip2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d7a2b3b8a0c -r 8e92dab674c5 external/bsd/bzip2/dist/bzip2.c
--- a/external/bsd/bzip2/dist/bzip2.c Sun Oct 20 03:10:45 2013 +0000
+++ b/external/bsd/bzip2/dist/bzip2.c Sun Oct 20 03:14:21 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bzip2.c,v 1.3 2012/05/07 00:45:47 wiz Exp $ */
+/* $NetBSD: bzip2.c,v 1.4 2013/10/20 03:14:21 christos Exp $ */
/*-----------------------------------------------------------*/
@@ -557,7 +557,7 @@
Bool testStream ( FILE *zStream )
{
BZFILE* bzf = NULL;
- Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i;
+ Int32 bzerr, bzerr_dummy, ret, streamNo, i;
UChar obuf[5000];
UChar unused[BZ_MAX_UNUSED];
Int32 nUnused;
@@ -580,7 +580,7 @@
streamNo++;
while (bzerr == BZ_OK) {
- nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 );
+ (void)BZ2_bzRead ( &bzerr, bzf, obuf, 5000 );
if (bzerr == BZ_DATA_ERROR_MAGIC) goto errhandler;
}
if (bzerr != BZ_STREAM_END) goto errhandler;
Home |
Main Index |
Thread Index |
Old Index