[asterisk-commits] russell: branch 1.4 r67018 -
/branches/1.4/include/asterisk/stringfields.h
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jun 4 08:28:34 MST 2007
Author: russell
Date: Mon Jun 4 10:28:33 2007
New Revision: 67018
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67018
Log:
Fix some compiler warnings in C++ modules.
(issue #9866, reported by osk, patch by Corydon76)
Modified:
branches/1.4/include/asterisk/stringfields.h
Modified: branches/1.4/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/stringfields.h?view=diff&rev=67018&r1=67017&r2=67018
==============================================================================
--- branches/1.4/include/asterisk/stringfields.h (original)
+++ branches/1.4/include/asterisk/stringfields.h Mon Jun 4 10:28:33 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