summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-19 19:47:50 +0200
committerMartin Mares <mj@ucw.cz>1998-10-19 19:47:50 +0200
commit4cf45766bac4b1e3f5196f7e36d012cb7c010dc1 (patch)
tree58c78cab6352e57768c8d76014a825184d2b30c2 /sysdep
parent36f2caf147fb80e2b3db59d367e07f5d143f3710 (diff)
downloadbird-4cf45766bac4b1e3f5196f7e36d012cb7c010dc1.tar
bird-4cf45766bac4b1e3f5196f7e36d012cb7c010dc1.zip
Exporting fill_in_sockaddr() for use by other unix-dependent code.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/io.c2
-rw-r--r--sysdep/unix/unix.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 4e5dbfd..3340666 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 127101e..c25f3ed 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 */