Current-Users archive

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

anyone else having troubles with compiling sup on amd64?



CS file: /home/cvs/netbsd/src/usr.sbin/sup/source/ffilecopy.c,v
retrieving revision 1.10
diff -u -r1.10 ffilecopy.c
--- ffilecopy.c 17 Oct 2009 22:26:13 -0000      1.10
+++ ffilecopy.c 18 Oct 2009 05:38:35 -0000
@@ -96,7 +96,7 @@
  *
  */

-int
+ssize_t
 ffilecopy(FILE * here, FILE * there)
 {
        int i, herefile, therefile;

CS file: /home/cvs/netbsd/src/usr.sbin/sup/source/scmio.c,v
retrieving revision 1.18
diff -u -r1.18 scmio.c
--- scmio.c     17 Oct 2009 22:26:13 -0000      1.18
+++ scmio.c     18 Oct 2009 05:41:48 -0000
@@ -256,7 +256,7 @@
                return (scmerr(-1, "Write retries failed"));
        }
        if (x != count)
-               return (scmerr(-1, "Write error on network returned %d on write of 
%d", x, count));
+               return (scmerr(-1, "Write error on network returned %d on write of 
%d", x, (int)count));
        return (SCMOK);
 }

@@ -434,7 +434,7 @@

        if (push) {
                if (bufptr + count < buffer)
-                       return (scmerr(-1, "No space in buffer %d", count));
+                       return (scmerr(-1, "No space in buffer %d", 
(int)count));
                bufptr -= count;
                bufcnt += count;
                memcpy(bufptr, data, -count);

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Home | Main Index | Thread Index | Old Index