Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Apr 2010 22:09:29 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206217 - head/lib/libc/stdio
Message-ID:  <201004052209.o35M9TNe058804@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: obrien
Date: Mon Apr  5 22:09:29 2010
New Revision: 206217
URL: http://svn.freebsd.org/changeset/base/206217

Log:
  I feel this wording of the history is more clear.
  ANSIfy vasprintf() while I'm here.

Modified:
  head/lib/libc/stdio/printf.3
  head/lib/libc/stdio/vasprintf.c

Modified: head/lib/libc/stdio/printf.3
==============================================================================
--- head/lib/libc/stdio/printf.3	Mon Apr  5 22:08:52 2010	(r206216)
+++ head/lib/libc/stdio/printf.3	Mon Apr  5 22:09:29 2010	(r206217)
@@ -891,9 +891,9 @@ in
 .Fx 2.2 ,
 but were later replaced with a different implementation
 from
-.An Todd C. Miller Aq Todd.Miller@courtesan.com
-for
-.Ox 2.3 .
+.Ox 2.3
+by
+.An Todd C. Miller Aq Todd.Miller@courtesan.com .
 The
 .Fn dprintf
 and

Modified: head/lib/libc/stdio/vasprintf.c
==============================================================================
--- head/lib/libc/stdio/vasprintf.c	Mon Apr  5 22:08:52 2010	(r206216)
+++ head/lib/libc/stdio/vasprintf.c	Mon Apr  5 22:09:29 2010	(r206217)
@@ -36,16 +36,13 @@ __FBSDID("$FreeBSD$");
 #include "local.h"
 
 int
-vasprintf(str, fmt, ap)
-	char **str;
-	const char *fmt;
-	__va_list ap;
+vasprintf(char **str, const char *fmt, __va_list ap)
 {
-	int ret;
 	FILE f = FAKE_FILE;
+	int ret;
 
 	f._flags = __SWR | __SSTR | __SALC;
-	f._bf._base = f._p = (unsigned char *)malloc(128);
+	f._bf._base = f._p = malloc(128);
 	if (f._bf._base == NULL) {
 		*str = NULL;
 		errno = ENOMEM;



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