diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-16 14:14:02 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-16 14:14:02 +0100 |
commit | a2867cd957c9282d47440a1f42a6b823f5c9e4b2 (patch) | |
tree | c70e344c00b20b4de6f5829aa2c7ceb352b50af0 /sysdep/unix | |
parent | 12a9d139eecea7e7fb5e73e82a2531c70894d4c8 (diff) | |
download | bird-a2867cd957c9282d47440a1f42a6b823f5c9e4b2.tar bird-a2867cd957c9282d47440a1f42a6b823f5c9e4b2.zip |
Better order of includes.
set_inaddr() moved to sysio.h.
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index af630f5..f860307 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -27,6 +27,7 @@ #include "nest/iface.h" #include "lib/unix.h" +#include "lib/sysio.h" /* * Random Numbers @@ -379,13 +380,6 @@ sk_new(pool *p) #ifdef IPV6 -static inline void -set_inaddr(struct in6_addr *ia, ip_addr a) -{ - ipa_hton(a); - memcpy(ia, &a, sizeof(a)); -} - void fill_in_sockaddr(sockaddr *sa, ip_addr a, unsigned port) { @@ -408,13 +402,6 @@ get_sockaddr(sockaddr *sa, ip_addr *a, unsigned *port) #else -static inline void -set_inaddr(struct in_addr *ia, ip_addr a) -{ - ipa_hton(a); - memcpy(&ia->s_addr, &a, sizeof(a)); -} - void fill_in_sockaddr(sockaddr *sa, ip_addr a, unsigned port) { @@ -436,8 +423,6 @@ get_sockaddr(sockaddr *sa, ip_addr *a, unsigned *port) #endif -#include "lib/sysio.h" - static char * sk_setup(sock *s) { |