diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-06-30 20:14:13 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-06-30 20:14:13 +0000 |
| commit | 2512f2fe3b8986d705644f67b757eb4a386a158e (patch) | |
| tree | e9161fc82a6530f0db1e4ecfbf3b8ac5bc616cb1 /gnu/usr.bin/tar | |
| parent | c15a5b80be7f54bb75ffcd2ade727b1105f0c71a (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/tar')
| -rw-r--r-- | gnu/usr.bin/tar/diffarch.c | 7 | ||||
| -rw-r--r-- | gnu/usr.bin/tar/gnu.c | 2 | ||||
| -rw-r--r-- | gnu/usr.bin/tar/list.c | 8 | ||||
| -rw-r--r-- | gnu/usr.bin/tar/port.c | 4 |
4 files changed, 11 insertions, 10 deletions
diff --git a/gnu/usr.bin/tar/diffarch.c b/gnu/usr.bin/tar/diffarch.c index ce47d9d6cab5..80e48bccaad2 100644 --- a/gnu/usr.bin/tar/diffarch.c +++ b/gnu/usr.bin/tar/diffarch.c @@ -442,7 +442,8 @@ compare_chunk (bytes, buffer) } else { - fprintf (msg_file, "%s: could only read %d of %d bytes\n", current_file_name, err, bytes); + fprintf (msg_file, "%s: could only read %d of %ld bytes\n", + current_file_name, err, bytes); } different++; return -1; @@ -619,7 +620,7 @@ diff_sparse_files (filesize) if (err < 0) msg_perror ("can't read %s", current_file_name); else - fprintf (msg_file, "%s: could only read %d of %d bytes\n", + fprintf (msg_file, "%s: could only read %d of %ld bytes\n", current_file_name, err, numbytes); break; } @@ -638,7 +639,7 @@ diff_sparse_files (filesize) if (err < 0) msg_perror ("can't read %s", current_file_name); else - fprintf (msg_file, "%s: could only read %d of %d bytes\n", + fprintf (msg_file, "%s: could only read %d of %ld bytes\n", current_file_name, err, numbytes); break; } diff --git a/gnu/usr.bin/tar/gnu.c b/gnu/usr.bin/tar/gnu.c index d3a04463082e..b51618e209af 100644 --- a/gnu/usr.bin/tar/gnu.c +++ b/gnu/usr.bin/tar/gnu.c @@ -173,7 +173,7 @@ write_dir_file () msg_perror ("Can't write to %s", gnu_dumpfile); return; } - fprintf (fp, "%lu\n", this_time); + fprintf (fp, "%lu\n", (unsigned long) this_time); for (dp = dir_list; dp; dp = dp->next) { if (!dp->dir_text) diff --git a/gnu/usr.bin/tar/list.c b/gnu/usr.bin/tar/list.c index 79d2654e3ade..a3329c9c2bee 100644 --- a/gnu/usr.bin/tar/list.c +++ b/gnu/usr.bin/tar/list.c @@ -568,7 +568,7 @@ print_header () extern long baserec; if (f_sayblock) - fprintf (msg_file, "rec %10d: ", baserec + (ar_record - ar_block)); + fprintf (msg_file, "rec %10ld: ", baserec + (ar_record - ar_block)); /* annofile(msg_file, (char *)NULL); */ if (f_verbose <= 1) @@ -653,7 +653,7 @@ print_header () else { user = uform; - (void) sprintf (uform, "%d", + (void) sprintf (uform, "%ld", from_oct (8, head->header.uid)); } if (*head->header.gname && head_standard) @@ -663,7 +663,7 @@ print_header () else { group = gform; - (void) sprintf (gform, "%d", + (void) sprintf (gform, "%ld", from_oct (8, head->header.gid)); } @@ -779,7 +779,7 @@ pr_mkdir (pathname, length, mode) demode ((unsigned) mode, modes + 1); if (f_sayblock) - fprintf (msg_file, "rec %10d: ", baserec + (ar_record - ar_block)); + fprintf (msg_file, "rec %10ld: ", baserec + (ar_record - ar_block)); /* annofile(msg_file, (char *)NULL); */ name = quote_copy_string (pathname); if (!name) diff --git a/gnu/usr.bin/tar/port.c b/gnu/usr.bin/tar/port.c index c1632459e72e..60b0f0f42932 100644 --- a/gnu/usr.bin/tar/port.c +++ b/gnu/usr.bin/tar/port.c @@ -1116,7 +1116,7 @@ msg (char *str,...) fflush (msg_file); fprintf (stderr, "%s: ", tar); if (f_sayblock) - fprintf (stderr, "rec %d: ", baserec + (ar_record - ar_block)); + fprintf (stderr, "rec %ld: ", baserec + (ar_record - ar_block)); vfprintf (stderr, str, args); va_end (args); putc ('\n', stderr); @@ -1133,7 +1133,7 @@ msg_perror (char *str,...) fflush (msg_file); fprintf (stderr, "%s: ", tar); if (f_sayblock) - fprintf (stderr, "rec %d: ", baserec + (ar_record - ar_block)); + fprintf (stderr, "rec %ld: ", baserec + (ar_record - ar_block)); va_start (args, str); vfprintf (stderr, str, args); va_end (args); |
