From 2ffaaba01216fbfe27275f7d600a6fa9eddcc3c1 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 12 Jun 2023 00:04:56 +0200 Subject: [PATCH] upnppermissions.c: fix compilation when DEBUG is defined --- miniupnpd/upnppermissions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpd/upnppermissions.c b/miniupnpd/upnppermissions.c index a2dec74..3fbe7a8 100644 --- a/miniupnpd/upnppermissions.c +++ b/miniupnpd/upnppermissions.c @@ -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; }