enami
723ff30abc
Fix some bugs in ifconf():
- maintain space left correctly. the pointer is advanced by the size of struct ifreq when length of address is small. - single sizeof operator is enough to take the size of struct. - the type of `sz' must be singed type since it is/was compared against to the variable which may become negative. - no need to traverse rest of interfaces once we got an error. note that the latter `break' statement was inside inner loop.
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%