1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

sort_queue(): make @swp variable local to the loop.

This commit is contained in:
Laurent MONIN 2005-12-13 16:50:04 +01:00 committed by Laurent MONIN
parent 2eebef098d
commit 852bdaec88

View File

@ -662,12 +662,10 @@ abort_all_keepalive_connections(void)
static void
sort_queue(void)
{
int swp;
do {
while (1) {
struct connection *conn;
int swp = 0;
swp = 0;
foreach (conn, connection_queue) {
if (!list_has_next(connection_queue, conn)) break;
@ -679,7 +677,9 @@ sort_queue(void)
swp = 1;
}
}
} while (swp);
if (!swp) break;
};
}
static void