pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/fetch Address some implicit sign casts. Bump to 1.5.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5a1c25f5074
branches:  trunk
changeset: 558627:f5a1c25f5074
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat May 09 19:14:40 2009 +0000

description:
Address some implicit sign casts. Bump to 1.5.

diffstat:

 net/fetch/Makefile      |  4 ++--
 net/fetch/files/fetch.c |  8 +++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 5210d6485df1 -r f5a1c25f5074 net/fetch/Makefile
--- a/net/fetch/Makefile        Sat May 09 18:48:08 2009 +0000
+++ b/net/fetch/Makefile        Sat May 09 19:14:40 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2009/02/09 13:34:51 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2009/05/09 19:14:40 joerg Exp $
 #
 
-DISTNAME=      fetch-1.4
+DISTNAME=      fetch-1.5
 CATEGORIES=    net
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 5210d6485df1 -r f5a1c25f5074 net/fetch/files/fetch.c
--- a/net/fetch/files/fetch.c   Sat May 09 18:48:08 2009 +0000
+++ b/net/fetch/files/fetch.c   Sat May 09 19:14:40 2009 +0000
@@ -344,6 +344,7 @@
        FILE *of;
        fetchIO *f;
        size_t size, wr;
+       ssize_t ssize;
        off_t count;
        char flags[8];
        char *tmppath;
@@ -656,12 +657,13 @@
                        stat_display(&xs, 1);
                        siginfo = 0;
                }
-               if ((size = fetchIO_read(f, buf, B_size)) == 0)
+               if ((ssize = fetchIO_read(f, buf, B_size)) == 0)
                        break;
-               if (size == -1 && errno == EINTR)
+               if (ssize == -1 && errno == EINTR)
                        continue;
-               if (size == -1)
+               if (ssize == -1)
                        break;
+               size = ssize;
                stat_update(&xs, count += size);
                for (ptr = buf; size > 0; ptr += wr, size -= wr) {
                        if ((wr = fwrite(ptr, 1, size, of)) < size) {



Home | Main Index | Thread Index | Old Index