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:
parent
2eebef098d
commit
852bdaec88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user