Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2012 17:35:08 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238111 - in head: include lib/libc/stdio
Message-ID:  <201207041735.q64HZ8UF023435@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Wed Jul  4 17:35:07 2012
New Revision: 238111
URL: http://svn.freebsd.org/changeset/base/238111

Log:
  The register_printf_render_std() function expects regular string.
  Change argument type from 'const unsigned char *' to 'const char *'.
  
  MFC after:	2 weeks

Modified:
  head/include/printf.h
  head/lib/libc/stdio/xprintf.c

Modified: head/include/printf.h
==============================================================================
--- head/include/printf.h	Wed Jul  4 17:31:53 2012	(r238110)
+++ head/include/printf.h	Wed Jul  4 17:35:07 2012	(r238111)
@@ -123,7 +123,7 @@ int register_printf_function(int spec, p
 
 /* 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;

Modified: head/lib/libc/stdio/xprintf.c
==============================================================================
--- head/lib/libc/stdio/xprintf.c	Wed Jul  4 17:31:53 2012	(r238110)
+++ head/lib/libc/stdio/xprintf.c	Wed Jul  4 17:35:07 2012	(r238111)
@@ -651,7 +651,7 @@ register_printf_render(int spec, printf_
 }
 
 int
-register_printf_render_std(const unsigned char *specs)
+register_printf_render_std(const char *specs)
 {
 
 	for (; *specs != '\0'; specs++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207041735.q64HZ8UF023435>