remove compilation warnings
authorAlan Buxey <alan.buxey@gmail.com>
Tue, 18 Sep 2012 21:24:52 +0000 (22:24 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 18 Sep 2012 21:44:00 +0000 (22:44 +0100)
2 "warning: format '%ld' expects type 'long int', but argument 3 has
type 'ssize_t'" messages removed

src/lib/tcp.c
src/main/radclient.c

index 83badf2..6c3906f 100644 (file)
@@ -329,7 +329,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=%zd\n", packet->id, packet->data_len);
        }
 
        return 1;               /* done reading the packet */
index e704221..4cd7180 100644 (file)
@@ -842,7 +842,7 @@ static int recv_one_packet(int wait_time)
 
        /* libradius debug already prints out the value pairs for us */
        if (!fr_debug_flag && do_output) {
-               printf("Received response ID %d, code %d, length = %ld\n",
+               printf("Received response ID %d, code %d, length = %zd\n",
                       radclient->reply->id, radclient->reply->code,
                       radclient->reply->data_len);
                vp_printlist(stdout, radclient->reply->vps);