]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved stored_sock to io-loop.c (old hack for mainloop)
authorMaria Matejka <mq@ucw.cz>
Tue, 27 Aug 2024 13:04:32 +0000 (15:04 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 23 Feb 2025 09:14:41 +0000 (10:14 +0100)
sysdep/unix/io-loop.c
sysdep/unix/io.c

index f69189e06187762bf8200335b5bff0afaf159d90..1ee67a79fce03bc5671160ccdb6c3876a4b1567a 100644 (file)
@@ -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)
index 61b0ee2ab0dbdb11905f2c7c94b3fd1a52c9fa70..45999c21072e5bfdeada77d9e6d9ee1224a183a8 100644 (file)
@@ -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);