[svn-commits] tilghman: branch 1.4 r288116 - /branches/1.4/include/asterisk/stringfields.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Sep 21 17:17:38 CDT 2010
Author: tilghman
Date: Tue Sep 21 17:17:33 2010
New Revision: 288116
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=288116
Log:
Underquoted definition of stringfield macro.
Modified:
branches/1.4/include/asterisk/stringfields.h
Modified: branches/1.4/include/asterisk/stringfields.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/include/asterisk/stringfields.h?view=diff&rev=288116&r1=288115&r2=288116
==============================================================================
--- branches/1.4/include/asterisk/stringfields.h (original)
+++ branches/1.4/include/asterisk/stringfields.h Tue Sep 21 17:17:33 2010
@@ -235,7 +235,7 @@
*/
#define ast_string_field_index_set(x, index, data) do { \
char *__zz__ = (char*) (x)->__begin_field[index]; \
- char *__data__ = (char*) data; \
+ char *__data__ = (char*) (data); \
size_t __dlen__ = strlen(__data__) + 1; \
if ( __dlen__ == 1 ) {\
(x)->__begin_field[index] = __ast_string_field_empty; \
@@ -253,7 +253,7 @@
#define ast_string_field_index_logset(x, index, data, logstr) do { \
char *__zz__ = (char*) (x)->__begin_field[index]; \
- char *__data__ = (char*) data; \
+ char *__data__ = (char*) (data); \
size_t __dlen__ = strlen(__data__) + 1; \
if ( __dlen__ == 1 ) {\
(x)->__begin_field[index] = __ast_string_field_empty; \
More information about the svn-commits
mailing list