git: DragonFly_RELEASE_2_6 sys/netinet/in_pcb.c: Fix a broken ra

看板DFBSD_commit作者時間15年前 (2010/05/18 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 5d2f6f16060b69b501c0d8bd0556e999a76e64a1 Author: Sascha Wildner <saw@online.de> Date: Tue May 18 12:15:40 2010 +0200 sys/netinet/in_pcb.c: Fix a broken range check. Back in 2004, in commit 80dff869, RANGECHK() was changed from a macro to an inline function. This broke the test since the passed 'var' could not be changed by the inline unless a pointer was used. Instead of changing to using pointers now (or adding a return value to RANGECHK()), revert to using a macro again. Summary of changes: sys/netinet/in_pcb.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d2f6f16060b69b501c0d8bd0556e999a76e64a1 -- DragonFly BSD source repository
文章代碼(AID): #1BydDo91 (DFBSD_commit)