Fix signedness warning.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 15 Apr 2007 15:50:19 +0000 (15:50 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 15 Apr 2007 15:50:19 +0000 (15:50 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@940 959494ce-11ee-0310-bf91-de5d638817bd

config/tthsum.c

index ed6c757..6d7d5ed 100644 (file)
@@ -60,6 +60,7 @@ static char *base64dec2(char *data, size_t *datalen)
 int main(int argc, char **argv)
 {
     int i, ret;
+    size_t size;
     int c, fd, outfd;
     int len, len2;
     int filter, output;
@@ -128,8 +129,8 @@ int main(int argc, char **argv)
                        fprintf(stderr, "tigersum: %s: could not read entire state\n", statefile);
                        exit(1);
                    }
-                   dec = base64dec2(buf, &ret);
-                   if(ret != 24) {
+                   dec = base64dec2(buf, &size);
+                   if(size != 24) {
                        fprintf(stderr, "tigersum: %s: illegal state\n", statefile);
                        exit(1);
                    }
@@ -144,8 +145,8 @@ int main(int argc, char **argv)
                    fprintf(stderr, "tigersum: %s: could not read entire state\n", statefile);
                    exit(1);
                }
-               dec = base64dec2(buf, &ret);
-               if(ret != tth.offset) {
+               dec = base64dec2(buf, &size);
+               if(size != tth.offset) {
                    fprintf(stderr, "tigersum: %s: illegal state\n", statefile);
                    exit(1);
                }