From: Maria Matejka Date: Tue, 27 Aug 2024 13:04:32 +0000 (+0200) Subject: Moved stored_sock to io-loop.c (old hack for mainloop) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb2ef774472a79aa7cf4cd9211507c40d02bde7;p=thirdparty%2Fbird.git Moved stored_sock to io-loop.c (old hack for mainloop) --- diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c index f69189e06..1ee67a79f 100644 --- a/sysdep/unix/io-loop.c +++ b/sysdep/unix/io-loop.c @@ -418,7 +418,7 @@ birdloop_add_socket(struct birdloop *loop, sock *s) socket_changed(s); } -extern sock *stored_sock; /* mainloop hack */ +sock *stored_sock; /* mainloop hack */ void birdloop_remove_socket(struct birdloop *loop, sock *s) diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 61b0ee2ab..45999c210 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -664,7 +664,7 @@ static int short_loops = 0; #define SHORT_LOOP_MAX 10 #define WORK_EVENTS_MAX 10 -sock *stored_sock; +extern sock *stored_sock; /* mainloop hack */ int sk_read(sock *s, int revents); int sk_write(sock *s);