X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=d06c2fde3863fe2b1c98fe45a132835535a22e38;hp=3ef7bc1930aef7658892ad93cb92d6bdfdb46eec;hb=a18d599791e977f3e3d26123031e6ed4e64d6d08;hpb=9ca70cf6a082bb146eaaa0b09361643feca38875 diff --git a/dump/main.c b/dump/main.c index 3ef7bc1..d06c2fd 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.73 2002/07/17 10:18:52 stelian Exp $"; + "$Id: main.c,v 1.74 2002/07/19 14:57:39 stelian Exp $"; #endif /* not lint */ #include @@ -879,10 +879,10 @@ main(int argc, char *argv[]) /* print QFA-file header */ snprintf(gTps, sizeof(gTps), "%s\n%s\n%ld\n\n", QFA_MAGIC, QFA_VERSION, (unsigned long)spcl.c_date); gTps[sizeof(gTps) - 1] = '\0'; - if (write(gTapeposfd, gTps, strlen(gTps)) != strlen(gTps)) + if (write(gTapeposfd, gTps, strlen(gTps)) != (ssize_t)strlen(gTps)) quit("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)) quit("can't write tapeposfile\n"); } #endif /* USE_QFA */