From: "Filip Sneppe (Cronos)" <filip.sneppe@cronos.be>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH 2.4] [TRIVIAL] kill ip_conntrack_tftp compile warning
Date: 29 Jun 2003 21:11:12 +0200 [thread overview]
Message-ID: <1056913873.632.68.camel@exile> (raw)
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
Hi,
Attached trivial patch kills the following compiler warning on
2.4.22-pre (probably 2.4.21 too). 2.5 already has the fix.
gcc -D__KERNEL__ -I/home/sneppef/kernel/linux-2.4.22-pre2-orig/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=k6 -DMODULE -DMODVERSIONS -include
/home/sneppef/kernel/linux-2.4.22-pre2-orig/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_nat_tftp -c -o
ip_nat_tftp.o ip_nat_tftp.c
ip_nat_tftp.c: In function `init':
ip_nat_tftp.c:156: warning: `ret' might be used uninitialized in this
function
Regards,
Filip
[-- Attachment #2: diff.netfilter.trivial-tftp.20030629-1 --]
[-- Type: text/x-patch, Size: 454 bytes --]
diff -urN -X dontdiff linux-2.4.22-pre2-orig/net/ipv4/netfilter/ip_nat_tftp.c linux-2.4.22-pre2/net/ipv4/netfilter/ip_nat_tftp.c
--- linux-2.4.22-pre2-orig/net/ipv4/netfilter/ip_nat_tftp.c 2003-06-13 16:51:39.000000000 +0200
+++ linux-2.4.22-pre2/net/ipv4/netfilter/ip_nat_tftp.c 2003-06-29 05:16:35.000000000 +0200
@@ -153,7 +153,7 @@
static int __init init(void)
{
- int i, ret;
+ int i, ret = 0;
char *tmpname;
if (!ports[0])
reply other threads:[~2003-06-29 19:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1056913873.632.68.camel@exile \
--to=filip.sneppe@cronos.be \
--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.