diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-11-02 14:34:33 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-11-02 18:50:41 +0000 |
commit | 96c672aef59ac785f3d351698311bb358820cc3c (patch) | |
tree | f862797a5a7f161a5ec727ca1d7df322a6d58c05 /testing/dns3_test.c | |
parent | e2d63e04979b59698b7e541f2aebb3c74495a2d3 (diff) |
Compile as C++ for windows builds.
Compiling as C++ changes nothing semantically, but ensures that we don't
break C++ compatibility while also retaining C compatibility.
C++ compatibility is useful for tooling and additional diagnostics and
analyses.
Diffstat (limited to 'testing/dns3_test.c')
-rw-r--r-- | testing/dns3_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/dns3_test.c b/testing/dns3_test.c index 3151dd99..7356bc00 100644 --- a/testing/dns3_test.c +++ b/testing/dns3_test.c | |||
@@ -98,12 +98,12 @@ int main(int argc, char *argv[]) | |||
98 | uint8_t id = rand(); | 98 | uint8_t id = rand(); |
99 | uint32_t p_len = create_packet(packet, string, strlen((char *)string), id); | 99 | uint32_t p_len = create_packet(packet, string, strlen((char *)string), id); |
100 | 100 | ||
101 | if (sendto(sock, (char *) packet, p_len, 0, (struct sockaddr *)&target, addrsize) != p_len) { | 101 | if (sendto(sock, (char *)packet, p_len, 0, (struct sockaddr *)&target, addrsize) != p_len) { |
102 | return -1; | 102 | return -1; |
103 | } | 103 | } |
104 | 104 | ||
105 | uint8_t buffer[512] = {0}; | 105 | uint8_t buffer[512] = {0}; |
106 | int r_len = recv(sock, buffer, sizeof(buffer), 0); | 106 | int r_len = recv(sock, (char *)buffer, sizeof(buffer), 0); |
107 | 107 | ||
108 | if (r_len < (int)p_len) { | 108 | if (r_len < (int)p_len) { |
109 | return -1; | 109 | return -1; |