]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: updated mock api for libknot master
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sat, 18 Apr 2015 21:31:57 +0000 (23:31 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sat, 18 Apr 2015 21:31:57 +0000 (23:31 +0200)
tests/mock_calls.c

index f07f641db12550af365bf5c1f46bb13d0a506e3a..fe32bd1dff1512c91a006ab43d8232d5432fbb4c 100644 (file)
@@ -57,7 +57,7 @@ int udp_recv_msg(int fd, uint8_t *buf, size_t len, struct timeval *timeout)
 }
 
 
-int tcp_send_msg(int fd, const uint8_t *msg, size_t len)
+int tcp_send_msg(int fd, const uint8_t *msg, size_t len, struct timeval *timeout)
 {
        /* Unlock GIL and attempt to send message over. */
        uint16_t msg_len = htons(len);
@@ -75,7 +75,7 @@ int udp_send_msg(int fd, const uint8_t *msg, size_t msglen,
                  const struct sockaddr *addr)
 {
        /* Tunnel via TCP. */
-       return tcp_send_msg(fd, msg, msglen);
+       return tcp_send_msg(fd, msg, msglen, NULL);
 }