Current-Users archive

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

sup cause build fail



scm.c: In function 'dobackoff':
scm.c:376: warning: comparison between signed and unsigned
scm.c: In function 'byteswap':
scm.c:695: warning: comparison between signed and unsigned
cc1: warnings being treated as errors
supcmain.c: In function 'main':
supcmain.c:404: warning: comparison between signed and unsigned
supcmain.c:406: warning: comparison between signed and unsigned
cc1: warnings being treated as errors
supcmeat.c: In function 'prepare':
supcmeat.c:754: warning: comparison between signed and unsigned
supcmeat.c: In function 'recvdir':
supcmeat.c:872: warning: comparison between signed and unsigned
supcmeat.c:872: warning: comparison between signed and unsigned
supcmeat.c: In function 'recvsym':
supcmeat.c:909: warning: comparison between signed and unsigned
supcmeat.c: In function 'recvreg':
supcmeat.c:948: warning: comparison between signed and unsigned
supcmeat.c:949: warning: comparison between signed and unsigned
cc1: warnings being treated as errors
supcparse.c: In function 'parsecoll':
supcparse.c:136: warning: comparison between signed and unsigned
cc1: warnings being treated as errors
supfilesrv.c: In function 'srvsetup':
supfilesrv.c:939: warning: comparison between signed and unsigned
supfilesrv.c:939: warning: comparison between signed and unsigned

i try create patch but i stuck at supcmeat.c

sorry

my patch so far

--- src/usr.sbin/sup/source/scm.c.old  2008-11-02 01:20:11.000000000 +0000
+++ src/usr.sbin/sup/source/scm.c      2008-11-02 01:23:22.000000000 +0000
@@ -363,7 +363,7 @@
 dobackoff(int *t, int *b)
 {
        struct timeval tt;
-       unsigned s;
+       size_t s;

        if (*t == 0)
                return (0);
@@ -686,7 +686,7 @@
 byteswap(int in)
 {
        union intchar x, y;
-       int ix, iy;
+       size_t ix, iy;

        if (swapmode == 0)
                return (in);

--- src/usr.sbin/sup/source/supcmain.c.old     2008-11-02
02:23:39.000000000 +0000
+++ src/usr.sbin/sup/source/supcmain.c         2008-11-02
02:25:12.000000000 +0000
@@ -359,7 +359,8 @@
 main(int argc, char **argv)
 {
        char *progname, *supfname;
-       int restart, sfdev = 0, sfino = 0;
+       int restart;
+       size_t sfdev = 0, sfino = 0;
        time_t sfmtime = 0;
        struct stat sbuf;
        struct sigaction ign;


Home | Main Index | Thread Index | Old Index