[asterisk-commits] russell: trunk r67017 -
/trunk/include/asterisk/stringfields.h
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jun 4 08:26:44 MST 2007
Author: russell
Date: Mon Jun 4 10:26:43 2007
New Revision: 67017
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67017
Log:
Fix some compiler warnings in C++ modules.
(issue #9866, reported by osk, patch by Corydon76)
Modified:
trunk/include/asterisk/stringfields.h
Modified: trunk/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/stringfields.h?view=diff&rev=67017&r1=67016&r2=67017
==============================================================================
--- trunk/include/asterisk/stringfields.h (original)
+++ trunk/include/asterisk/stringfields.h Mon Jun 4 10:26:43 2007
@@ -235,7 +235,7 @@
*/
#define ast_string_field_index_set(x, index, data) do { \
char *__zz__ = (char*)(x)->__begin_field[index]; \
- int __dlen__ = strlen(data); \
+ size_t __dlen__ = strlen(data); \
if( __dlen__ == 0 ) { (x)->__begin_field[index] = __ast_string_field_empty; \
} else { \
if( __zz__[0] != 0 && __dlen__ <= strlen(__zz__) ) { \
@@ -250,7 +250,7 @@
#ifdef FOR_TEST
#define ast_string_field_index_logset(x, index, data, logstr) do { \
char *__zz__ = (char*)(x)->__begin_field[index]; \
- int __dlen__ = strlen(data); \
+ size_t __dlen__ = strlen(data); \
if( __dlen__ == 0 ) { (x)->__begin_field[index] = __ast_string_field_empty; \
} else { \
if( __zz__[0] != 0 && __dlen__ <= strlen(__zz__) ) { \
More information about the asterisk-commits
mailing list