printf: fix regression in previous patch
authorEric Blake <ebb9@byu.net>
Fri, 27 Feb 2009 15:46:07 +0000 (08:46 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 27 Feb 2009 15:58:13 +0000 (08:58 -0700)
* m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/printf.m4

index 9791df7..ee4e23f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-27  Eric Blake  <ebb9@byu.net>
+
+       printf: fix regression in previous patch
+       * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
+
 2009-02-27  Bruno Haible  <bruno@clisp.org>
 
        * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
@@ -58,7 +63,7 @@
        See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
 
 2009-02-26  Eric Blake  <ebb9@byu.net>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        Work around a *printf bug with %ls on Solaris.
        * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
index 6da62df..4142b9b 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 32
+# printf.m4 serial 33
 dnl Copyright (C) 2003, 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -656,7 +656,7 @@ int main ()
      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku,
      Cygwin 1.5.  */
   {
-    static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
+    static wchar_t wstring[] = { 'a', 'b', 'c', 0 };
     buf[0] = '\0';
     if (sprintf (buf, "%ls", wstring) < 0
         || strcmp (buf, "abc") != 0)