diff options
author | Martin Mares <mj@ucw.cz> | 1998-10-19 17:47:50 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-10-19 17:47:50 +0000 |
commit | 4cf45766bac4b1e3f5196f7e36d012cb7c010dc1 (patch) | |
tree | 58c78cab6352e57768c8d76014a825184d2b30c2 /sysdep/unix | |
parent | 36f2caf147fb80e2b3db59d367e07f5d143f3710 (diff) |
Exporting fill_in_sockaddr() for use by other unix-dependent code.
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 */ |