aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-12-01 12:01:21 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-12-01 12:01:21 +0200
commit3be097c12ec14a69b3f3df3e2138fa235a3154d7 (patch)
treea632f25c53b61c100d180b7cc3242e560d69afe8 /src
parent32d95fe0c90c59352a0ce3102fc9866cbfb0f629 (diff)
downloadcpio-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')
-rw-r--r--src/copyin.c6
-rw-r--r--src/util.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/copyin.c b/src/copyin.c
index ba887ae..a01873d 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -844,14 +844,14 @@ from_ascii (char const *where, size_t digs, unsigned logbase)
char *p = strchr (codetab, toupper (*buf));
if (!p)
{
- error (0, 0, _("Malformed number %.*s"), digs, where);
+ error (0, 0, _("Malformed number %.*s"), (int) digs, where);
break;
}
d = p - codetab;
if ((d >> logbase) > 1)
{
- error (0, 0, _("Malformed number %.*s"), digs, where);
+ error (0, 0, _("Malformed number %.*s"), (int) digs, where);
break;
}
value += d;
@@ -862,7 +862,7 @@ from_ascii (char const *where, size_t digs, unsigned logbase)
}
if (overflow)
error (0, 0, _("Archive value %.*s is out of range"),
- digs, where);
+ (int) digs, where);
return value;
}
diff --git a/src/util.c b/src/util.c
index 4e49124..7303240 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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)

Return to:

Send suggestions and report system problems to the System administrator.