svn commit: r322898 - head/bin/dd
Alan Somers
asomers at FreeBSD.org
Fri Aug 25 18:51:11 UTC 2017
Author: asomers
Date: Fri Aug 25 18:51:10 2017
New Revision: 322898
URL: https://svnweb.freebsd.org/changeset/base/322898
Log:
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
Modified:
head/bin/dd/args.c
Modified: head/bin/dd/args.c
==============================================================================
--- head/bin/dd/args.c Fri Aug 25 18:47:23 2017 (r322897)
+++ head/bin/dd/args.c Fri Aug 25 18:51:10 2017 (r322898)
@@ -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;
}
}
More information about the svn-src-all
mailing list