diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2020-07-19 15:02:16 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2020-07-21 20:00:29 +0200 |
commit | d746ff11073b5bbf8fff33b2eb7fe110ddf9fee8 (patch) | |
tree | f3f18389f575691c5c2c8d36a7e1dc75a5213403 /lib/doh.c | |
parent | ff8b6ce05fa9587372faed171fb293821ee99ba6 (diff) | |
download | curl-d746ff11073b5bbf8fff33b2eb7fe110ddf9fee8.tar.gz |
doh: remove redundant cast
Closes https://github.com/curl/curl/pull/5704
Diffstat (limited to 'lib/doh.c')
-rw-r--r-- | lib/doh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -858,7 +858,7 @@ doh2ai(const struct dohentry *de, const char *hostname, int port) addr = (void *)ai->ai_addr; /* storage area for this info */ DEBUGASSERT(sizeof(struct in_addr) == sizeof(de->addr[i].ip.v4)); memcpy(&addr->sin_addr, &de->addr[i].ip.v4, sizeof(struct in_addr)); - addr->sin_family = (CURL_SA_FAMILY_T)addrtype; + addr->sin_family = addrtype; addr->sin_port = htons((unsigned short)port); break; @@ -867,7 +867,7 @@ doh2ai(const struct dohentry *de, const char *hostname, int port) addr6 = (void *)ai->ai_addr; /* storage area for this info */ DEBUGASSERT(sizeof(struct in6_addr) == sizeof(de->addr[i].ip.v6)); memcpy(&addr6->sin6_addr, &de->addr[i].ip.v6, sizeof(struct in6_addr)); - addr6->sin6_family = (CURL_SA_FAMILY_T)addrtype; + addr6->sin6_family = addrtype; addr6->sin6_port = htons((unsigned short)port); break; #endif |