apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r660378 - /apr/apr/branches/1.2.x/strings/apr_snprintf.c
Date Tue, 27 May 2008 04:54:44 GMT
Author: bojan
Date: Mon May 26 21:54:41 2008
New Revision: 660378

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

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

Modified: apr/apr/branches/1.2.x/strings/apr_snprintf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/strings/apr_snprintf.c?rev=660378&r1=660377&r2=660378&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/strings/apr_snprintf.c (original)
+++ apr/apr/branches/1.2.x/strings/apr_snprintf.c Mon May 26 21:54:41 2008
@@ -65,7 +65,8 @@
 
 #define NUL '\0'
 
-#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