Revert "dnsmasq: improve insecure DS warning"
[openwrt/staging/lynxis.git] / package / network / services / dnsmasq / patches / 0042-Remove-unclear-gcc-ism-in-conditional-expression.patch
1 From 5ed82ae5f2946367b62f17fa4c48e9703f189c72 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Tue, 5 Mar 2019 16:38:34 +0000
4 Subject: [PATCH 42/57] Remove unclear gcc-ism in conditional expression.
5
6 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 ---
8 src/radv.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/src/radv.c
12 +++ b/src/radv.c
13 @@ -412,7 +412,7 @@ static void send_ra_alias(time_t now, in
14 if (mtu == 0)
15 {
16 char *mtu_name = ra_param ? ra_param->mtu_name : NULL;
17 - sprintf(daemon->namebuff, "/proc/sys/net/ipv6/conf/%s/mtu", mtu_name ? : iface_name);
18 + sprintf(daemon->namebuff, "/proc/sys/net/ipv6/conf/%s/mtu", mtu_name ? mtu_name : iface_name);
19 if ((f = fopen(daemon->namebuff, "r")))
20 {
21 if (fgets(daemon->namebuff, MAXDNAME, f))