ThomasHabets / arping

ARP Ping
http://www.habets.pp.se/synscan/programs.php
GNU General Public License v2.0
398 stars 62 forks source link

fixed missing variable for command line parsing #52

Closed pusi77 closed 1 year ago

pusi77 commented 1 year ago

Hey, i tried to install your latest release but i got this error:

arping.c: In function ‘arping_main’:
arping.c:2052:24: error: ‘c’ undeclared (first use in this function); did you mean ‘cp’?
 2052 |         while (EOF != (c = getopt(argc, argv,
      |                        ^
      |                        cp

I've found out that in one of your commits you removed the declaration of the "c" variable, i just re-added it :)

ThomasHabets commented 1 year ago

Ugh, that's embarrassing. Thanks!