return NULL;
}
- if ((error = getnameinfo(&ss, len, dst, cnt, NULL, 0,
- NI_NUMERICHOST | NI_NUMERICSERV)) != 0) {
+ if ((error = getnameinfo((struct sockaddr *)&ss, len, dst, cnt, NULL, 0,
+ NI_NUMERICHOST | NI_NUMERICSERV)) != 0) {
librad_log("ip_ntoh: %s", gai_strerror(error));
return NULL;
}
};
#define NIL &Sentinel /* all leafs are sentinels */
-static const rbnode_t Sentinel = { NIL, NIL, NULL, Black, NULL};
+static rbnode_t Sentinel = { NIL, NIL, NULL, Black, NULL};
struct rbtree_t {
#ifndef NDEBUG