Messages in this thread Patch in this message | | | Date | Mon, 4 Feb 2002 02:04:58 -0500 (EST) | From | "Calin A. Culianu" <> | Subject | [PATCH] 2.4.18-pre7 Fixed typo that made compiling impossible in /net/ipv4/netfilter/ipfwadm_core.c |
| |
/net/ipv4/netfilter/ipfwadm_core.c has a typo. The MOD_*_USE_COUNT macros are being used incorrectly. Compiling was impossible as a result.
I fixed the typos. It's trivial, but I figured I'd submit this just to make it easier for marcello to fix this...? (this may have been submitted by someone else already.. but my quick scan of the mailing list didn't reveal anyone having patched this).
-Calin --- vanilla-2.4.18-pre7/net/ipv4/netfilter/ipfwadm_core.c Mon Feb 4 01:49:14 2002 +++ patched/net/ipv4/netfilter/ipfwadm_core.c Mon Feb 4 00:58:56 2002 @@ -688,7 +688,7 @@ ftmp = *chainptr; *chainptr = ftmp->fw_next; kfree(ftmp); - MOD_DEC_USE_COUNT(); + MOD_DEC_USE_COUNT; } restore_flags(flags); } @@ -732,7 +732,7 @@ ftmp->fw_next = *chainptr; *chainptr=ftmp; restore_flags(flags); - MOD_INC_USE_COUNT(); + MOD_INC_USE_COUNT; return(0); } @@ -783,7 +783,7 @@ else *chainptr=ftmp; restore_flags(flags); - MOD_INC_USE_COUNT(); + MOD_INC_USE_COUNT; return(0); } @@ -858,7 +858,7 @@ } restore_flags(flags); if (was_found) { - MOD_DEC_USE_COUNT(); + MOD_DEC_USE_COUNT; return 0; } else return(EINVAL);
| |