Remove unclear gcc-ism in conditional expression.

This commit is contained in:
Simon Kelley
2019-03-05 16:38:34 +00:00
parent 6799320edb
commit 5ed82ae5f2

View File

@@ -412,7 +412,7 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
if (mtu == 0)
{
char *mtu_name = ra_param ? ra_param->mtu_name : NULL;
sprintf(daemon->namebuff, "/proc/sys/net/ipv6/conf/%s/mtu", mtu_name ? : iface_name);
sprintf(daemon->namebuff, "/proc/sys/net/ipv6/conf/%s/mtu", mtu_name ? mtu_name : iface_name);
if ((f = fopen(daemon->namebuff, "r")))
{
if (fgets(daemon->namebuff, MAXDNAME, f))