summaryrefslogtreecommitdiff
path: root/src/rexmpp_dns.c
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-06-20 21:49:53 +0300
committerdefanor <defanor@uberspace.net>2023-06-20 21:49:53 +0300
commitc3cb19dec32ffae9e4f93c269b4e1d3504321643 (patch)
treed5c5bc4fc9582b01b68a4056a52a00692d77f5da /src/rexmpp_dns.c
parentc12a24ef337889ed1f980cce2baf78ac6bd0ee93 (diff)
Add Rust versions of the TCP module and of a few structures
Diffstat (limited to 'src/rexmpp_dns.c')
-rw-r--r--src/rexmpp_dns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rexmpp_dns.c b/src/rexmpp_dns.c
index 8c40c0a..f793e88 100644
--- a/src/rexmpp_dns.c
+++ b/src/rexmpp_dns.c
@@ -64,6 +64,7 @@ int rexmpp_parse_srv (char *in, int in_len, struct rexmpp_dns_srv *out) {
}
+#ifndef USE_RUST
void rexmpp_dns_result_free (rexmpp_dns_result_t *result) {
if (result->data != NULL) {
int i;
@@ -79,6 +80,7 @@ void rexmpp_dns_result_free (rexmpp_dns_result_t *result) {
}
free(result);
}
+#endif
rexmpp_dns_result_t *result_from_hostent (struct hostent *hostinfo) {
rexmpp_dns_result_t *r = malloc(sizeof(rexmpp_dns_result_t));