X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.c;h=6df001e351ec5e3de139d018eb577a648145a102;hb=4e0fc52197546bbf8a0be7af946f4b569e13048c;hp=16368080ce61940ca28cc50d80b912d09a647839;hpb=b161088b35fad1d284855f6434a895a20e34a250;p=meshlink diff --git a/src/net.c b/src/net.c index 16368080..6df001e3 100644 --- a/src/net.c +++ b/src/net.c @@ -344,7 +344,7 @@ int reload_configuration(void) { for(node = myself->subnet_tree->head; node; node = node->next) { subnet_t *subnet = node->data; - logger(DEBUG_ALWAYS, LOG_DEBUG, "subnet %p expires %d\n", subnet, subnet->expires); + logger(DEBUG_ALWAYS, LOG_DEBUG, "subnet %p expires %d\n", subnet, (int)subnet->expires); if(!subnet->expires) subnet->expires = 1; } @@ -356,7 +356,7 @@ int reload_configuration(void) { continue; if((s2 = lookup_subnet(myself, subnet))) { - logger(DEBUG_ALWAYS, LOG_DEBUG, "read subnet that already exists: %p expires %d\n", s2, s2->expires); + logger(DEBUG_ALWAYS, LOG_DEBUG, "read subnet that already exists: %p expires %d\n", s2, (int)s2->expires); if(s2->expires == 1) s2->expires = 0;