lkml.org 
[lkml]   [2002]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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);
\
 
 \ /
  Last update: 2005-03-22 13:23    [W:0.747 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site