sys/netinet/in_pcb.c: Fix a broken range check.
authorSascha Wildner <saw@online.de>
Tue, 18 May 2010 10:15:40 +0000 (12:15 +0200)
committerSascha Wildner <saw@online.de>
Tue, 18 May 2010 10:15:40 +0000 (12:15 +0200)
commit22641a84b8281036978166784d7791a1c2a31a13
tree0409694cc9cd175530805e360b2d5ac15285f02c
parentc0a2798178778a495dbb2cefa32ac9c33c8bb57a
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.
sys/netinet/in_pcb.c