From: Sami Kerola Date: Sun, 4 Sep 2016 16:20:55 +0000 (+0100) Subject: cleanup: set variable only if it is used X-Git-Tag: v0.88~26^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd58e1b0b46f1c247041795c9f045e8ca46b9c8;p=thirdparty%2Fmtr.git cleanup: set variable only if it is used Variable introduction needs to be same way preprocessor conditional as the related code. This is a minor clean up, because modern compilers should remove these types of variables automatically. --- diff --git a/net.c b/net.c index 1cd97a3..047d953 100644 --- a/net.c +++ b/net.c @@ -1341,7 +1341,9 @@ static void set_fd_flags(int fd) extern int net_preopen(void) { +#ifdef IP_HDRINCL int trueopt = 1; +#endif #if !defined(IP_HDRINCL) && defined(IP_TOS) && defined(IP_TTL) sendsock4_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);