return get_ipv6_addr(ipv6_prefix_spec, &t_addr, &t_bits, M_WARN);
}
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"
-#endif
-
static char *
-string_substitute(const char *src, int from, int to, struct gc_arena *gc)
+string_substitute(const char *src, char from, char to, struct gc_arena *gc)
{
char *ret = (char *)gc_malloc(strlen(src) + 1, true, gc);
char *dest = ret;
gc_free(&gc);
}
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif
-
bool
has_udp_in_local_list(const struct options *options)
{
#define PUF_TYPE_IGNORE 2 /**< filter type to ignore a matching option */
#define PUF_TYPE_REJECT 3 /**< filter type to reject and trigger SIGUSR1 */
int type;
- int size;
+ size_t size;
char *pattern;
struct pull_filter *next;
};