# HG changeset patch # User Sebastien Decugis # Date 1370224891 -28800 # Node ID 5dab72369dfff32857b5535cfd5561ca7f998f15 # Parent 9c9f2b75bf9523fab38f6b968e26fcf85873edf6 Fix compilation warning diff -r 9c9f2b75bf95 -r 5dab72369dff include/freeDiameter/libfdproto.h --- a/include/freeDiameter/libfdproto.h Mon Jun 03 09:59:10 2013 +0800 +++ b/include/freeDiameter/libfdproto.h Mon Jun 03 10:01:31 2013 +0800 @@ -357,7 +357,7 @@ char * __line = (mlbuf), *__next; \ char * __p = (per_line_prefix), *__s = (per_line_suffix); \ while ((__next = strchr(__line, '\n')) != NULL) { \ - LOG(printlevel, "%s%.*s%s", __p ?:"", __next - __line, __line, __s ?:""); \ + LOG(printlevel, "%s%.*s%s", __p ?:"", (int)(__next - __line), __line, __s ?:""); \ __line = __next + 1; \ } \ LOG(printlevel, "%s%s%s", __p ?:"", __line, __s ?:""); \