summary refs log tree commit diff stats
path: root/src/common/msproxy.c
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-10-10 00:05:22 -0400
committerTingPing <tingping@tingping.se>2013-10-10 00:05:22 -0400
commitc226f4089ae99283dab4f681710ce798c3908969 (patch)
tree8f1b9b8373ca4b1bb09c39194279d524b2c93fda /src/common/msproxy.c
parente244001cee150d574e668aaf478626a036d31cc9 (diff)
Fix a few cppcheck warnings.
Use the proper data type in format functions and fix a resource leak.
Diffstat (limited to 'src/common/msproxy.c')
-rw-r--r--src/common/msproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/msproxy.c b/src/common/msproxy.c
index 294c208d..5f631c7f 100644
--- a/src/common/msproxy.c
+++ b/src/common/msproxy.c
@@ -72,7 +72,7 @@ send_msprequest(s, state, request, end)
 
 	if ((w = send(s, request, l, 0)) != l) {
 #ifdef DEBUG_MSPROXY
-		printf ("send_msprequest(): send() failed (%d bytes sent instead of %d\n", w, l);
+		printf ("send_msprequest(): send() failed (%ld bytes sent instead of %Iu\n", w, l);
 		perror ("Error is");
 #endif
 		return -1;
@@ -93,7 +93,7 @@ recv_mspresponse(s, state, response)
 	do {
 		if ((r = recv (s, response, sizeof (*response), 0)) < MSPROXY_MINLENGTH) {
 #ifdef DEBUG_MSPROXY
-			printf ("recv_mspresponse(): expected to read atleast %d, read %d\n", MSPROXY_MINLENGTH, r);
+			printf ("recv_mspresponse(): expected to read atleast %d, read %ld\n", MSPROXY_MINLENGTH, r);
 #endif
 			return -1;
 		}