Re: Linux 2.4.18-pre7: compile error

From: Stephan von Krawczynski (skraw@ithnet.com)
Date: Thu Jan 24 2002 - 15:21:46 EST


On Thu, 24 Jan 2002 03:01:06 +0300
Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:

> On Thu, 24 Jan 2002 00:46:45 +0100
> Stephan von Krawczynski <skraw@ithnet.com> wrote:
>
> > "I am sorry, Dave. I'm afraid I can't do that":
>
> > ipfwadm_core.o ipfwadm_core.c
> > ipfwadm_core.c: In function `free_fw_chain':
> > ipfwadm_core.c:691: called object is not a function
> > ipfwadm_core.c: In function `insert_in_chain':
> > ipfwadm_core.c:735: called object is not a function
> > ipfwadm_core.c: In function `append_to_chain':
> > ipfwadm_core.c:786: called object is not a function
> > ipfwadm_core.c: In function `del_from_chain':
> > ipfwadm_core.c:861: called object is not a function
>
> I hope this patch will help you:

Yes, in principal, but unfortunately the white spaces were tilted
in your patch, so here is a corrected version for inclusion.

Thanks Evgeniy.

--- linux/net/ipv4/netfilter/ipfwadm_core.c~ Thu Jan 24 21:16:02 2002
+++ linux/net/ipv4/netfilter/ipfwadm_core.c Thu Jan 24 21:16:38 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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:00:23 EST