changeset 8813:dcdd75ded626

Fix syntax error in C++ mode.
author Bruno Haible <bruno@clisp.org>
date Sun, 13 May 2007 21:44:46 +0000
parents 28d0ef9a0a36
children 04b21457982b
files ChangeLog lib/stdlib_.h
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-05-13  Bruno Haible  <bruno@clisp.org>
+
+	* lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
+	when used in C++ mode.
+
+2007-05-12  Bruno Haible  <bruno@clisp.org>
+
+	* lib/linebuffer.h: Tweak doc.
+	* lib/linebuffer.c: Likewise.
+
 2007-05-12  James Youngman  <jay@gnu.org>
 
 	* lib/linebuffer.c (readlinebuffer_delim): New function,
--- a/lib/stdlib_.h
+++ b/lib/stdlib_.h
@@ -103,7 +103,7 @@
    they are replaced with a string that makes the directory name unique.
    Returns TEMPLATE, or a null pointer if it cannot get a unique name.
    The directory is created mode 700.  */
-extern char * mkdtemp (char *template);
+extern char * mkdtemp (char * /*template*/);
 # endif
 #elif defined GNULIB_POSIXCHECK
 # undef mkdtemp
@@ -126,7 +126,7 @@
    Returns the open file descriptor if successful, otherwise -1 and errno
    set.  */
 #  define mkstemp rpl_mkstemp
-extern int mkstemp (char *template);
+extern int mkstemp (char * /*template*/);
 # else
 /* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
 #  include <unistd.h>