From 4ea3eeb803a561e97407755eee34426bc639d49f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 3 Oct 2014 21:16:49 +0100 Subject: [PATCH] netlink: Use MIN rather than ?: Signed-off-by: Ian Jackson --- netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlink.c b/netlink.c index e197e80..6016864 100644 --- a/netlink.c +++ b/netlink.c @@ -386,7 +386,7 @@ static uint16_t netlink_icmp_reply_len(struct buffer_if *buf) /* We include the first 8 bytes of the packet data, provided they exist */ hlen+=8; plen=ntohs(iph->tot_len); - return (hlen>plen?plen:hlen); + return MIN(hlen,plen); } /* client indicates where the packet we're constructing a response to -- 2.30.2