Browse code

dns_cache: minor fix, goto instead of break

Exit from the main look when no number of entries
has already been processed in dns_cache_clean()

Miklos Tirpak authored on 16/06/2010 14:04:16
Showing 1 changed files
... ...
@@ -680,7 +680,7 @@ inline static int dns_cache_clean(unsigned int no, int expired_only)
680 680
 				deleted++;
681 681
 			}
682 682
 			n++;
683
-			if (n>=no) break;
683
+			if (n>=no) goto skip;
684 684
 		}
685 685
 	}
686 686
 	/* not fair, but faster then random() */