1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
commit 3be097c12ec14a69b3f3df3e2138fa235a3154d7
Author: Sergey Poznyakoff <gray@gnu.org>
Date: Sat Dec 1 12:01:21 2018 +0200
Minor fixes
* src/copyin.c: Remove unused variable.
* src/util.c: Cast arguments to printf.
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)
|