OpenBSD/src CEDNIyF — sbin/ifconfig ifconfig.c brconfig.c
Fix some compiler warings in ifconfig(8). Move all prototypes and variables used in multiple .c files into common ifconfig.h. Basically this renames brconfig.h to ifconfig.h and also uses it for sff.c. Fix missing prototypes. Global variable name s is bad as it shadows local variables. Call it sock and use it everywhere. OK deraadt@
Version | Delta | File | |
---|---|---|---|
1.413 | +235 | -228 | sbin/ifconfig/ifconfig.c |
1.23 | +47 | -47 | sbin/ifconfig/brconfig.c |
1.1 | +76 | -0 | sbin/ifconfig/ifconfig.h |
1.22 | +22 | -20 | sbin/ifconfig/sff.c |
1.16 | +1 | -1 | sbin/ifconfig/brconfig.h |
+381 | -296 | 5 files |