Skip to content

Commit

Permalink
Pacify GCC on mips32 after r322893
Browse files Browse the repository at this point in the history
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
  • Loading branch information
asomers committed Aug 25, 2017
1 parent aa0a430 commit d06622b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/dd/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit d06622b

Please sign in to comment.