All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.