Re: sysctl warns6 cleanup

看板DFBSD_submit作者時間21年前 (2005/01/09 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/10 (看更多)
On Sat, 8 Jan 2005 17:17:17 +0100 Peter Schuller <peter.schuller@infidyne.com> wrote: > Attached. And almost identical to the one I did independently a few days ago which I haven't committed yet :) The only difference is that I used a seperate const char * variable instead of 'var' when it's being assigned " " and "", since that seemed (to me) to be a confusing reuse (re-abuse?) of the variable 'var' for a different purpose (output spacing). (In general, reusing a variable for a different purpose is a bad idea. It seems to be an old habit of people who started out coding in assembly language or BASIC. But by using dataflow analysis, modern C compilers can optimize to the extent that two variables whose usage doesn't overlap can share the same storage. So it's completely unnecessary nowadays, not to mention horribly confusing.) I'll commit it later today. -Chris
文章代碼(AID): #11u3K_00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #11u3K_00 (DFBSD_submit)