changeset 1171:5dab72369dff

Fix compilation warning
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 03 Jun 2013 10:01:31 +0800
parents 9c9f2b75bf95
children 83d55d26ae80
files include/freeDiameter/libfdproto.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ?:"");								\
"Welcome to our mercurial repository"