comparison include/freeDiameter/libfdproto.h @ 1171:5dab72369dff

Fix compilation warning
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 03 Jun 2013 10:01:31 +0800
parents 11724ff78638
children 56c36d1007b4
comparison
equal deleted inserted replaced
1170:9c9f2b75bf95 1171:5dab72369dff
355 /* Split a multi-line buffer into separate calls to the LOG function. */ 355 /* Split a multi-line buffer into separate calls to the LOG function. */
356 #define LOG_SPLIT(printlevel, per_line_prefix, mlbuf, per_line_suffix ) { \ 356 #define LOG_SPLIT(printlevel, per_line_prefix, mlbuf, per_line_suffix ) { \
357 char * __line = (mlbuf), *__next; \ 357 char * __line = (mlbuf), *__next; \
358 char * __p = (per_line_prefix), *__s = (per_line_suffix); \ 358 char * __p = (per_line_prefix), *__s = (per_line_suffix); \
359 while ((__next = strchr(__line, '\n')) != NULL) { \ 359 while ((__next = strchr(__line, '\n')) != NULL) { \
360 LOG(printlevel, "%s%.*s%s", __p ?:"", __next - __line, __line, __s ?:""); \ 360 LOG(printlevel, "%s%.*s%s", __p ?:"", (int)(__next - __line), __line, __s ?:""); \
361 __line = __next + 1; \ 361 __line = __next + 1; \
362 } \ 362 } \
363 LOG(printlevel, "%s%s%s", __p ?:"", __line, __s ?:""); \ 363 LOG(printlevel, "%s%s%s", __p ?:"", __line, __s ?:""); \
364 } 364 }
365 365
"Welcome to our mercurial repository"