[trivial PATCH 02/22] [event.c] eliminate build warnings

Wang Tinggong wangtinggong at gmail.com
Mon Feb 1 18:23:12 CET 2010


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

diff --git a/src/lib/event.c b/src/lib/event.c
index 84a928b..6f91661 100644
--- a/src/lib/event.c
+++ b/src/lib/event.c
@@ -322,13 +322,13 @@ int fr_event_loop(fr_event_list_t *el)
 	el->exit = 0;
 	el->dispatch = 1;
 	el->changed = 1;
+	maxfd = 0;
 
 	while (!el->exit) {
 		/*
 		 *	Cache the list of FD's to watch.
 		 */
 		if (el->changed) {
-			maxfd = 0;
 			FD_ZERO(&master_fds);
 			
 			for (i = 0; i < el->max_readers; i++) {
-- 
1.6.0.6



More information about the Freeradius-Devel mailing list