]> www.tinc-vpn.org Git - tinc/blobdiff - src/subnet_parse.c
Fix all warnings when compiling with -Wall -W -pedantic.
[tinc] / src / subnet_parse.c
index 88513f68a6bc88331ecfd42c358869e908b79c00..d5b84eb647f6fa710e4f3eeb9ab2ced28ded7ae2 100644 (file)
@@ -371,7 +371,7 @@ bool str2net(subnet_t *subnet, const char *subnetstr) {
 
 bool net2str(char *netstr, int len, const subnet_t *subnet) {
        if(!netstr || !subnet) {
-               logger(DEBUG_ALWAYS, LOG_ERR, "net2str() was called with netstr=%p, subnet=%p!", netstr, subnet);
+               logger(DEBUG_ALWAYS, LOG_ERR, "net2str() was called with netstr=%p, subnet=%p!", (void *)netstr, (void *)subnet);
                return false;
        }