summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-02-09 09:37:04 +0000
committertrasz <trasz@FreeBSD.org>2016-02-09 09:37:04 +0000
commitf44be69b43d86aadd60b89af7e54455ced4e8fde (patch)
tree848dacac22ad33bea6c19016599fea9dc6042230
parent3cff9b6c1ca3b2dd9e418fae513bfc35b726d0f4 (diff)
downloadFreeBSD-src-f44be69b43d86aadd60b89af7e54455ced4e8fde.zip
FreeBSD-src-f44be69b43d86aadd60b89af7e54455ced4e8fde.tar.gz
Use a proper type for return value of postfix_to_mult(); the way it's
being used wouldn't work if the value returned didn't fit in intmax_t. Submitted by: bde@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
-rw-r--r--bin/dd/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 6cbc65a..e8b17ba 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -360,10 +360,10 @@ c_conv(const void *a, const void *b)
((const struct conv *)b)->name));
}
-static uintmax_t
+static intmax_t
postfix_to_mult(const char expr)
{
- uintmax_t mult;
+ intmax_t mult;
mult = 0;
switch (expr) {
OpenPOWER on IntegriCloud