X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fmain.c;h=723a88f00ebf98348fb626b8b7569df99d343faf;hp=2f2db7a192c832aae6683f15246884f266eb98e6;hb=a18d599791e977f3e3d26123031e6ed4e64d6d08;hpb=9ca70cf6a082bb146eaaa0b09361643feca38875 diff --git a/restore/main.c b/restore/main.c index 2f2db7a..723a88f 100644 --- a/restore/main.c +++ b/restore/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.40 2002/06/08 07:10:37 stelian Exp $"; + "$Id: main.c,v 1.41 2002/07/19 14:57:39 stelian Exp $"; #endif /* not lint */ #include @@ -554,10 +554,10 @@ main(int argc, char *argv[]) errx(1, "can't create tapeposfile\n"); /* print QFA-file header */ sprintf(gTps, "%s\n%s\n%ld\n\n", QFA_MAGIC, QFA_VERSION,(unsigned long)spcl.c_date); - if (write(gTapeposfd, gTps, strlen(gTps)) != strlen(gTps)) + if (write(gTapeposfd, gTps, strlen(gTps)) != (ssize_t)strlen(gTps)) errx(1, "can't write tapeposfile\n"); sprintf(gTps, "ino\ttapeno\ttapepos\n"); - if (write(gTapeposfd, gTps, strlen(gTps)) != strlen(gTps)) + if (write(gTapeposfd, gTps, strlen(gTps)) != (ssize_t)strlen(gTps)) errx(1, "can't write tapeposfile\n"); extractdirs(1);