Re: ifconfig.c redundancy the second

2023-01-18 Thread Stefan Sperling
On Fri, Jan 13, 2023 at 09:18:30PM +0100, Mathias Koehler wrote: > Ehm well it should look like this, sorry: This code duplication has now been removed. Thanks! > === > RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v > retrieving

Re: ifconfig.c redundancy the second

2023-01-13 Thread Mathias Koehler
Ehm well it should look like this, sorry: === RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v retrieving revision 1.460 diff -u -p -u -p -r1.460 ifconfig.c --- ifconfig.c 18 Dec 2022 18:56:38 - 1.460 +++ ifconfig.c 13 Jan

Re: ifconfig.c redundancy the second

2023-01-13 Thread Otto Moerbeek
On Fri, Jan 13, 2023 at 08:04:36PM +0100, Mathias Koehler wrote: > I hope the following message is a format more helpful for you > guys. (Thanks to Otto Moerbeek who gave me a hint.) /% ... %./ is not a comment marker in C. -Otto > Again my question is how should that code look like?

ifconfig.c redundancy the second

2023-01-13 Thread Mathias Koehler
I hope the following message is a format more helpful for you guys. (Thanks to Otto Moerbeek who gave me a hint.) Again my question is how should that code look like? Because I can remove the 'if' and the code still does the same.