]> jfr.im git - solanum.git/blobdiff - ircd/listener.c
librb: Fix type of dst for rb_inet_pton_sock()
[solanum.git] / ircd / listener.c
index 816b6df0bfd0c5862b11d301e4fe9f13e3a48bac..19e249a2822b2168d8c584c64eea43dfd598336a 100644 (file)
@@ -389,11 +389,11 @@ add_sctp_listener(int port, const char *vhost_ip1, const char *vhost_ip2, int ss
        memset(&vaddr, 0, sizeof(vaddr));
 
        if (vhost_ip1 != NULL) {
-               if (rb_inet_pton_sock(vhost_ip1, (struct sockaddr *)&vaddr[0]) <= 0)
+               if (rb_inet_pton_sock(vhost_ip1, &vaddr[0]) <= 0)
                        return;
 
                if (vhost_ip2 != NULL) {
-                       if (rb_inet_pton_sock(vhost_ip2, (struct sockaddr *)&vaddr[1]) <= 0)
+                       if (rb_inet_pton_sock(vhost_ip2, &vaddr[1]) <= 0)
                                return;
                } else {
                        SET_SS_FAMILY(&vaddr[1], AF_UNSPEC);