[PATCH] tcp.c: elimiate warining "format '%ld', but argument has type 'ssize_t'

Wang Tinggong wangtinggong at gmail.com
Mon Feb 1 10:53:17 CET 2010


Signed-off-by: Wang Tinggong <wangtinggong at gmail.com>
---
 src/lib/tcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/tcp.c b/src/lib/tcp.c
index 2f0946b..4a691c1 100644
--- a/src/lib/tcp.c
+++ b/src/lib/tcp.c
@@ -323,7 +323,7 @@ int fr_tcp_read_packet(RADIUS_PACKET *packet, int flags)
 			DEBUG("rad_recv: Packet from %s code=%d",
 			      buffer, packet->code);
 		}
-		DEBUG(", id=%d, length=%ld\n", packet->id, packet->data_len);
+		DEBUG(", id=%d, length=%d\n", packet->id, packet->data_len);
 	}
 
 	return 1;		/* done reading the packet */
-- 
1.6.0.6



More information about the Freeradius-Devel mailing list