From 587e177dc365fa370de59e71e4235726ff86bc8d Mon Sep 17 00:00:00 2001
From: thorkill <thkr@hannover.ccc.de>
Date: Tue, 19 May 2015 22:21:25 +0200
Subject: [PATCH] Fixed format-warnings

---
 src/protocol_misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/protocol_misc.c b/src/protocol_misc.c
index 47f4aef0..3b008332 100644
--- a/src/protocol_misc.c
+++ b/src/protocol_misc.c
@@ -98,7 +98,7 @@ bool send_ping(connection_t *c) {
 	c->status.pinged = true;
 	c->last_ping_time = now;
 
-	return send_request(c, "%d %d %d", PING, c->last_ping_time.tv_sec, c->last_ping_time.tv_usec);
+	return send_request(c, "%d %ld %ld", PING, c->last_ping_time.tv_sec, c->last_ping_time.tv_usec);
 }
 
 bool ping_h(connection_t *c, const char *request) {
@@ -204,7 +204,7 @@ bool send_sptps_tcppacket(connection_t *c, const char* packet, int len) {
 	if(2.0 * c->outbuf.len / (float)maxoutbufsize - 1 > (float)rand()/(float)RAND_MAX)
 		return true;
 
-	if(!send_request(c, "%d %hd", SPTPS_PACKET, len))
+	if(!send_request(c, "%d %d", SPTPS_PACKET, len))
 		return false;
 
 	send_meta_raw(c, packet, len);