* [PATCH] ip_nat_sip: fix compiler warning
@ 2006-05-28 13:46 Torsten Luettgert
2006-05-28 14:29 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Torsten Luettgert @ 2006-05-28 13:46 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
Hi,
here's a trivial patch for ip_nat_sip which fixes the following
compiler warning:
net/ipv4/netfilter/ip_nat_sip.c:97: warning: ISO C90 forbids mixed
declarations and code
Regards,
Torsten
[-- Attachment #2: ip_nat_sip.patch --]
[-- Type: text/x-patch, Size: 694 bytes --]
Index: linux-2.6.13/net/ipv4/netfilter/ip_nat_sip.c
===================================================================
--- linux-2.6.13/net/ipv4/netfilter/ip_nat_sip.c (revision 6622)
+++ linux-2.6.13/net/ipv4/netfilter/ip_nat_sip.c (working copy)
@@ -61,6 +61,7 @@
unsigned int bufflen, dataoff;
uint32_t ip;
uint16_t port;
+ const char *aux;
dataoff = (*pskb)->nh.iph->ihl*4 + sizeof(struct udphdr);
@@ -93,7 +94,7 @@
}
/* This search should ignore case, but later.. */
- const char *aux = ct_sip_search("CSeq:", *dptr, sizeof("CSeq:") - 1,
+ aux = ct_sip_search("CSeq:", *dptr, sizeof("CSeq:") - 1,
(*pskb)->len - dataoff);
if (!aux)
return 0;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] ip_nat_sip: fix compiler warning
2006-05-28 13:46 [PATCH] ip_nat_sip: fix compiler warning Torsten Luettgert
@ 2006-05-28 14:29 ` Patrick McHardy
2006-05-28 15:32 ` Torsten Luettgert
0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2006-05-28 14:29 UTC (permalink / raw)
To: Torsten Luettgert; +Cc: netfilter-devel
Torsten Luettgert wrote:
> Hi,
>
> here's a trivial patch for ip_nat_sip which fixes the following
> compiler warning:
>
> net/ipv4/netfilter/ip_nat_sip.c:97: warning: ISO C90 forbids mixed
> declarations and code
Thanks, but the SIP helper in patch-o-matic is quite out of date.
I have a version with that warning (and some other things) already
fixed queued for upstream submission. After that I'll most likely
remove it from pom.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ip_nat_sip: fix compiler warning
2006-05-28 14:29 ` Patrick McHardy
@ 2006-05-28 15:32 ` Torsten Luettgert
2006-05-28 15:34 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Torsten Luettgert @ 2006-05-28 15:32 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netfilter-devel
On So, 2006-05-28 at 16:29 +0200, Patrick McHardy wrote:
> Torsten Luettgert wrote:
> >
> Thanks, but the SIP helper in patch-o-matic is quite out of date.
> I have a version with that warning (and some other things) already
> fixed queued for upstream submission. After that I'll most likely
> remove it from pom.
Ok, I'll just switch if off in my 2.6.16 kernels.
BTW: What about the new protoff argument to match functions, and
the change from struct ipt_ip * to void * in the checkentry
functions (e.g. in the set match).
Are those already fixed and going upstream, too, or would it be
worthwile to submit patches for old matches and targets?
Regards,
Torsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ip_nat_sip: fix compiler warning
2006-05-28 15:32 ` Torsten Luettgert
@ 2006-05-28 15:34 ` Patrick McHardy
0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2006-05-28 15:34 UTC (permalink / raw)
To: Torsten Luettgert; +Cc: netfilter-devel
Torsten Luettgert wrote:
> BTW: What about the new protoff argument to match functions, and
> the change from struct ipt_ip * to void * in the checkentry
> functions (e.g. in the set match).
>
> Are those already fixed and going upstream, too, or would it be
> worthwile to submit patches for old matches and targets?
I guess anything still in pom is worth fixing. There are
a couple of patchlets that have found new maintainers but
don't have an external repository yet, those will be
removed once those repositories are set up. Until then
I have no problems applying fixes to them.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-28 15:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-28 13:46 [PATCH] ip_nat_sip: fix compiler warning Torsten Luettgert
2006-05-28 14:29 ` Patrick McHardy
2006-05-28 15:32 ` Torsten Luettgert
2006-05-28 15:34 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.