diff options
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 2 | ||||
-rw-r--r-- | sysdep/unix/unix.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 4e5dbfd8..33406664 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -281,7 +281,7 @@ set_inaddr(struct in_addr *ia, ip_addr a) memcpy(&ia->s_addr, &a, sizeof(a)); } -static void +void fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port) { sa->sin_family = AF_INET; diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 127101e7..c25f3edb 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -13,6 +13,7 @@ void io_init(void); void io_loop(void); +void fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port); void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port); /* sync-if.c */ |