summaryrefslogtreecommitdiffstats
path: root/usr.bin/printf
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-12-13 19:54:42 +0000
committerdelphij <delphij@FreeBSD.org>2010-12-13 19:54:42 +0000
commitbb706ebebc0b506358f8dfa751d55ca27f71f569 (patch)
treec361d3f13b5feb0314f36e69ac084eacea6094da /usr.bin/printf
parentb1a65ed0c12f30efc9083483c886e5e3d126515e (diff)
downloadFreeBSD-src-bb706ebebc0b506358f8dfa751d55ca27f71f569.zip
FreeBSD-src-bb706ebebc0b506358f8dfa751d55ca27f71f569.tar.gz
The only caller of mknum() provides a char instead of an int, so make it
match the definition. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos
Diffstat (limited to 'usr.bin/printf')
-rw-r--r--usr.bin/printf/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 19b1ddd..53585af 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -92,7 +92,7 @@ static int getint(int *);
static int getnum(intmax_t *, uintmax_t *, int);
static const char
*getstr(void);
-static char *mknum(char *, int);
+static char *mknum(char *, char);
static void usage(void);
static char **gargv;
@@ -336,7 +336,7 @@ printf_doformat(char *start, int *rval)
}
static char *
-mknum(char *str, int ch)
+mknum(char *str, char ch)
{
static char *copy;
static size_t copy_size;
OpenPOWER on IntegriCloud