summary refs log tree commit diff
path: root/src/headers
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 12:34:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 12:34:14 +0000
commit0d82edd9f8bebb396a9154d4e1003340dbf6b967 (patch)
tree0659c834f387f3504944a610ed6858b9e268e6c7 /src/headers
parent2436785702b47996e9f0e281df0d6027660ec914 (diff)
downloadskalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.tar.gz
skalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.tar.xz
skalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.zip
Lots of cosmetic fixes.
 sha256 documented.
Diffstat (limited to 'src/headers')
-rw-r--r--src/headers/ip46-header4
-rw-r--r--src/headers/ip46-with4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/headers/ip46-header b/src/headers/ip46-header
index 4f0cf8c..ba310d3 100644
--- a/src/headers/ip46-header
+++ b/src/headers/ip46-header
@@ -27,8 +27,8 @@ struct ip46full_s
 
 #define ip46full_is6(i) ((i)->is6)
 #define ip46full_fmt(s, i) ((i)->is6 ? ip6_fmt(s, (i)->ip) : ip4_fmt(s, (i)->ip))
-extern unsigned int ip46full_scan (char const *, ip46full_t_ref) ;
-extern unsigned int ip46full_scanlist (ip46full_t_ref, unsigned int, char const *, unsigned int *) ;
+extern unsigned int ip46full_scan (char const *, ip46full_t *) ;
+extern unsigned int ip46full_scanlist (ip46full_t *, unsigned int, char const *, unsigned int *) ;
 #define ip46full_from_ip4(i, ip4) (byte_copy((i)->ip, 4, ip4), byte_zero((i)->ip + 4, 12), (i)->is6 = 0)
 #define ip46full_from_ip6(i, ip6) (byte_copy((i)->ip, 16, ip6), (i)->is6 = 1)
 
diff --git a/src/headers/ip46-with b/src/headers/ip46-with
index 0cd3d19..8ff6752 100644
--- a/src/headers/ip46-with
+++ b/src/headers/ip46-with
@@ -17,8 +17,8 @@ typedef ip46full_t ip46_t, *ip46_t_ref ;
 #define socket_udp46(h) ((h) ? socket_udp6() : socket_udp4())
 #define socket_recv46(fd, s, len, i, port) ((i)->is6 ? socket_recv6(fd, s, len, (i)->ip, port) : socket_recv4(fd, s, len, (i)->ip, port))
 #define socket_send46(fd, s, len, i, port) ((i)->is6 ? socket_send6(fd, s, len, (i)->ip, port) : socket_send4(fd, s, len, (i)->ip, port))
-extern int socket_local46 (int, ip46_t_ref, uint16 *) ;
-extern int socket_remote46 (int, ip46_t_ref, uint16 *) ;
+extern int socket_local46 (int, ip46_t *, uint16 *) ;
+extern int socket_remote46 (int, ip46_t *, uint16 *) ;
 
 #define socket_recvnb46(fd, buf, len, i, port, deadline, stamp) ((i)->is6 ? socket_recvnb6(fd, buf, len, (i)->ip, port, deadline, stamp) : socket_recvnb4(fd, buf, len, (i)->ip, port, deadline, stamp))
 #define socket_sendnb46(fd, buf, len, i, port, deadline, stamp) ((i)->is6 ? socket_sendnb6(fd, buf, len, (i)->ip, port, deadline, stamp) : socket_sendnb4(fd, buf, len, (i)->ip, port, deadline, stamp))