aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2017-08-25 18:51:10 +0000
committerAlan Somers <asomers@FreeBSD.org>2017-08-25 18:51:10 +0000
commit5ad496a25257a5a3678d6c01ca1a2516a178a085 (patch)
treee2e630d05d8e81c2fe03ca1cc0be1dd2991a1482 /bin
parenta0ae476b7ea495fe03d170bc479d72c9234fb81b (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/dd/args.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index ad0c35e5e9e2..7a39ada74db1 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -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;
}
}