Pacify GCC on mips32 after r322893
Though technically correct, GCC complains about usingi a "%zd" format specifier for a long. Reported by: cem MFC after: 3 weeks X-MFC-With: 322893 Sponsored by: Spectra Logic
This commit is contained in:
parent
a0ae476b7e
commit
5ad496a252
@ -185,7 +185,7 @@ f_bs(char *arg)
|
||||
|
||||
res = get_num(arg);
|
||||
if (res < 1 || res > SSIZE_MAX)
|
||||
errx(1, "bs must be between 1 and %zd", SSIZE_MAX);
|
||||
errx(1, "bs must be between 1 and %zd", (ssize_t)SSIZE_MAX);
|
||||
in.dbsz = out.dbsz = (size_t)res;
|
||||
}
|
||||
|
||||
@ -196,7 +196,7 @@ f_cbs(char *arg)
|
||||
|
||||
res = get_num(arg);
|
||||
if (res < 1 || res > SSIZE_MAX)
|
||||
errx(1, "cbs must be between 1 and %zd", SSIZE_MAX);
|
||||
errx(1, "cbs must be between 1 and %zd", (ssize_t)SSIZE_MAX);
|
||||
cbsz = (size_t)res;
|
||||
}
|
||||
|
||||
@ -242,7 +242,7 @@ f_ibs(char *arg)
|
||||
res = get_num(arg);
|
||||
if (res < 1 || res > SSIZE_MAX)
|
||||
errx(1, "ibs must be between 1 and %zd",
|
||||
SSIZE_MAX);
|
||||
(ssize_t)SSIZE_MAX);
|
||||
in.dbsz = (size_t)res;
|
||||
}
|
||||
}
|
||||
@ -263,7 +263,7 @@ f_obs(char *arg)
|
||||
res = get_num(arg);
|
||||
if (res < 1 || res > SSIZE_MAX)
|
||||
errx(1, "obs must be between 1 and %zd",
|
||||
SSIZE_MAX);
|
||||
(ssize_t)SSIZE_MAX);
|
||||
out.dbsz = (size_t)res;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user