upnppermissions.c: fix compilation when DEBUG is defined

This commit is contained in:
Thomas Bernard 2023-06-12 00:04:56 +02:00
parent e663006e68
commit 2ffaaba012
1 changed files with 2 additions and 2 deletions

View File

@ -382,10 +382,10 @@ read_permission_line(struct upnpperm * perm,
#ifdef DEBUG
printf("perm rule added : %s %hu-%hu %08x/%08x %hu-%hu %s\n",
(perm->type==UPNPPERM_ALLOW)?"allow":"deny",
(perm->type==UPNPPERM_ALLOW) ? "allow" : "deny",
perm->eport_min, perm->eport_max, ntohl(perm->address.s_addr),
ntohl(perm->mask.s_addr), perm->iport_min, perm->iport_max,
(perm->re)?re:"");
perm->re ? perm->re : "");
#endif
return 0;
}