apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r660379 - /apr/apr/branches/0.9.x/strings/apr_snprintf.c
Date Tue, 27 May 2008 04:57:14 GMT
Author: bojan
Date: Mon May 26 21:57:11 2008
New Revision: 660379

URL: http://svn.apache.org/viewvc?rev=660379&view=rev
Log:
Backport r660373 from the trunk.
Silence GCC 4.3 warning (patch by jorton).

Modified:
    apr/apr/branches/0.9.x/strings/apr_snprintf.c

Modified: apr/apr/branches/0.9.x/strings/apr_snprintf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/strings/apr_snprintf.c?rev=660379&r1=660378&r2=660379&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/strings/apr_snprintf.c (original)
+++ apr/apr/branches/0.9.x/strings/apr_snprintf.c Mon May 26 21:57:11 2008
@@ -65,7 +65,8 @@
 #endif
 typedef int bool_int;
 
-#define S_NULL "(null)"
+static const char null_string[] = "(null)";
+#define S_NULL ((char *)null_string)
 #define S_NULL_LEN 6
 
 #define FLOAT_DIGITS 6



Mime
View raw message