Module: sip-router
Branch: master
Commit: 304fe28c1f299db8a36fe6953da3c3b9afa24c12
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=304fe28…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 16 13:17:22 2011 +0100
lib/binrpc: fixed compile warnings
- reported by Juha Heinanen
---
lib/binrpc/binrpc_api.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c
index e360b7f..9398fea 100644
--- a/lib/binrpc/binrpc_api.c
+++ b/lib/binrpc/binrpc_api.c
@@ -67,7 +67,9 @@
#define UNIX_PATH_MAX 108
#endif
+#ifndef INT2STR_MAX_LEN
#define INT2STR_MAX_LEN (19+1+1) /* 2^64~= 16*10^18 => 19+1 digits + \0 */
+#endif
static void* (*internal_malloc)(size_t size) = malloc;
static void* (*internal_realloc)(void* ptr, size_t size) = realloc;
@@ -501,7 +503,7 @@ static int get_reply(struct binrpc_handle *handle,
if (crt - hdr_end < tl) {
snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1,
"get_reply: datagram truncated. Received: %ld, Expected: %d.",
- crt-hdr_end, tl);
+ (long int)(crt-hdr_end), tl);
return FATAL_ERROR;
}
}