[trivial PATCH 03/22] [packet.c] eliminate build warnings
Wang Tinggong
wangtinggong at gmail.com
Mon Feb 1 18:24:25 CET 2010
Signed-off-by: Wang Tinggong <wangtinggong at gmail.com>
---
src/lib/packet.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/lib/packet.c b/src/lib/packet.c
index ffb4e4c..94352b5 100644
--- a/src/lib/packet.c
+++ b/src/lib/packet.c
@@ -655,7 +655,7 @@ int fr_packet_list_num_elements(fr_packet_list_t *pl)
int fr_packet_list_id_alloc(fr_packet_list_t *pl,
RADIUS_PACKET *request)
{
- int i, id, start, fd;
+ int i, id, start;
int src_any = 0;
uint32_t free_mask;
fr_packet_dst2id_t my_pd, *pd;
@@ -721,7 +721,6 @@ int fr_packet_list_id_alloc(fr_packet_list_t *pl,
id = start = (int) fr_rand() & 0xff;
while (pd->id[id] == pl->mask) { /* all sockets are using this ID */
- redo:
id++;
id &= 0xff;
if (id == start) return 0;
--
1.6.0.6
More information about the Freeradius-Devel
mailing list