all: Remove unused longindex parameter to getopt_long()
commitf474c5031e5b8c5833342a504c6e33941a5103f0
authorTobias Klauser <tklauser@distanz.ch>
Thu, 8 Dec 2016 10:09:10 +0000 (8 11:09 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 8 Dec 2016 10:12:13 +0000 (8 11:12 +0100)
tree3e797a93eea85fe6c82c20f1f762bfc4f4c0d39d
parentbf0df3ec1875df4b167aedd0fff25e7e56408b6b
all: Remove unused longindex parameter to getopt_long()

All tools (except mausezahn) use getopt_long() and pass a pointer to a
local opt_index variable for the longindex parameter. However, this
variable is never read afterwards.

According to getopt(3) it's perfectly fine to pass NULL as the longindex
parameter instead, so do that.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
astraceroute.c
bpfc.c
curvetun.c
flowtop.c
ifpps.c
netsniff-ng.c
trafgen.c