All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4] [TRIVIAL] kill ip_conntrack_tftp compile warning
@ 2003-06-29 19:11 Filip Sneppe (Cronos)
  0 siblings, 0 replies; only message in thread
From: Filip Sneppe (Cronos) @ 2003-06-29 19:11 UTC (permalink / raw)
  To: netfilter-devel

[-- 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])

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-29 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-29 19:11 [PATCH 2.4] [TRIVIAL] kill ip_conntrack_tftp compile warning Filip Sneppe (Cronos)

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.