0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-19 11:55:21 +00:00

Moved sk_open_unix() to common lib

This commit is contained in:
Maria Matejka 2024-09-04 20:34:15 +02:00
parent 97e85f088d
commit 80c0df06a7
3 changed files with 2 additions and 2 deletions

View File

@ -88,6 +88,7 @@ sock *sock_new(pool *); /* Allocate new socket */
#define sk_new(X) sock_new(X) /* Wrapper to avoid name collision with OpenSSL */
int sk_open(sock *, struct birdloop *); /* Open socket */
int sk_open_unix(struct birdsock *s, struct birdloop *, const char *name); /* Open UNIX socket */
void sk_reloop(sock *, struct birdloop *); /* Move socket to another loop. Both loops must be locked. */
static inline void sk_close(sock *s) { rfree(&s->r); } /* Explicitly close socket */

View File

@ -1379,7 +1379,7 @@ err:
}
int
sk_open_unix(sock *s, struct birdloop *loop, char *name)
sk_open_unix(sock *s, struct birdloop *loop, const char *name)
{
struct sockaddr_un sa;
int fd;

View File

@ -113,7 +113,6 @@ extern volatile sig_atomic_t async_shutdown_flag;
void io_init(void);
void io_loop(void);
void io_log_dump(void);
int sk_open_unix(struct birdsock *s, struct birdloop *, char *name);
enum rf_mode {
RF_APPEND = 1,