diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-01 12:01:21 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-01 12:01:21 +0200 |
commit | 3be097c12ec14a69b3f3df3e2138fa235a3154d7 (patch) | |
tree | a632f25c53b61c100d180b7cc3242e560d69afe8 /src/util.c | |
parent | 32d95fe0c90c59352a0ce3102fc9866cbfb0f629 (diff) | |
download | cpio-3be097c12ec14a69b3f3df3e2138fa235a3154d7.tar.gz cpio-3be097c12ec14a69b3f3df3e2138fa235a3154d7.tar.bz2 |
Minor fixes
* src/copyin.c: Remove unused variable.
* src/util.c: Cast arguments to printf.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -498,8 +498,9 @@ copy_files_disk_to_tape (int in_des, int out_des, off_t num_bytes, filename, STRINGIFY_BIGINT (num_bytes, buf)); } else - error (0, 0, _("Read error at byte %lld in file %s, padding with zeros"), - original_num_bytes - num_bytes, filename); + error (0, 0, + _("Read error at byte %lld in file %s, padding with zeros"), + (long long) (original_num_bytes - num_bytes), filename); write_nuls_to_file (num_bytes, out_des, tape_buffered_write); break; } @@ -548,8 +549,9 @@ copy_files_disk_to_disk (int in_des, int out_des, off_t num_bytes, filename, STRINGIFY_BIGINT (num_bytes, buf)); } else - error (0, 0, _("Read error at byte %lld in file %s, padding with zeros"), - original_num_bytes - num_bytes, filename); + error (0, 0, + _("Read error at byte %lld in file %s, padding with zeros"), + (long long) (original_num_bytes - num_bytes), filename); write_nuls_to_file (num_bytes, out_des, disk_buffered_write); break; } @@ -599,13 +601,11 @@ void create_all_directories (char *name) { char *dir; - int mode; #ifdef HPUX_CDF int cdf; #endif dir = dir_name (name); - mode = 0700; #ifdef HPUX_CDF cdf = islastparentcdf (name); if (cdf) |