From: Alan T. DeKok Date: Wed, 30 May 2012 13:34:27 +0000 (+0200) Subject: Fix compiler warnings X-Git-Tag: release_3_0_0_beta0~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef2cb4568c6a553eb1327d845cadf89f17acb6e;p=thirdparty%2Ffreeradius-server.git Fix compiler warnings --- diff --git a/src/main/listen.c b/src/main/listen.c index cb774d5d1fc..4ceed30789a 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -51,6 +51,7 @@ RCSID("$Id$") #endif +#ifdef DEBUG_PRINT_PACKET static void print_packet(RADIUS_PACKET *packet) { char src[256], dst[256]; @@ -62,7 +63,7 @@ static void print_packet(RADIUS_PACKET *packet) src, packet->src_port, dst, packet->dst_port); } - +#endif /* * We'll use this below. @@ -92,7 +93,7 @@ static int command_write_magic(int newfd, listen_socket_t *sock); * Xlat for %{listen:foo} */ static size_t xlat_listen(UNUSED void *instance, REQUEST *request, - char *fmt, char *out, + const char *fmt, char *out, size_t outlen, UNUSED RADIUS_ESCAPE_STRING func) {