From: Torsten Luettgert <t.luettgert@pressestimmen.de>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] ip_nat_sip: fix compiler warning
Date: Sun, 28 May 2006 15:46:19 +0200 [thread overview]
Message-ID: <1148823979.32002.2.camel@scaramouche.combox.de> (raw)
[-- 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;
next reply other threads:[~2006-05-28 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-28 13:46 Torsten Luettgert [this message]
2006-05-28 14:29 ` [PATCH] ip_nat_sip: fix compiler warning Patrick McHardy
2006-05-28 15:32 ` Torsten Luettgert
2006-05-28 15:34 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1148823979.32002.2.camel@scaramouche.combox.de \
--to=t.luettgert@pressestimmen.de \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.