summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-07-04 17:35:07 +0000
committerpjd <pjd@FreeBSD.org>2012-07-04 17:35:07 +0000
commitd4c2b884b40c5aaba808cbe2a491c74cc7ea65b2 (patch)
treea14c4f6b0680aa6ca6cff198f4d4ea649e17066d
parent36219ba107327b0956ae5b3967eea6cce7e06cde (diff)
downloadFreeBSD-src-d4c2b884b40c5aaba808cbe2a491c74cc7ea65b2.zip
FreeBSD-src-d4c2b884b40c5aaba808cbe2a491c74cc7ea65b2.tar.gz
The register_printf_render_std() function expects regular string.
Change argument type from 'const unsigned char *' to 'const char *'. MFC after: 2 weeks
-rw-r--r--include/printf.h2
-rw-r--r--lib/libc/stdio/xprintf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/printf.h b/include/printf.h
index 1cb39c7..c12c3eb 100644
--- a/include/printf.h
+++ b/include/printf.h
@@ -123,7 +123,7 @@ int register_printf_function(int spec, printf_function *render, printf_arginfo_f
/* FreeBSD */
int register_printf_render(int spec, printf_render *render, printf_arginfo_function *arginfo);
-int register_printf_render_std(const unsigned char *specs);
+int register_printf_render_std(const char *specs);
/* vprintf_errno.c */
printf_arginfo_function __printf_arginfo_errno;
diff --git a/lib/libc/stdio/xprintf.c b/lib/libc/stdio/xprintf.c
index 0cc8571..b00b4cb 100644
--- a/lib/libc/stdio/xprintf.c
+++ b/lib/libc/stdio/xprintf.c
@@ -651,7 +651,7 @@ register_printf_render(int spec, printf_render *render, printf_arginfo_function
}
int
-register_printf_render_std(const unsigned char *specs)
+register_printf_render_std(const char *specs)
{
for (; *specs != '\0'; specs++) {
OpenPOWER on IntegriCloud