* ip{,6}t_random / fix build warnings.
@ 2005-09-17 11:30 Paweł Sikora
2005-09-18 6:15 ` David S. Miller
2005-09-19 15:05 ` Harald Welte
0 siblings, 2 replies; 3+ messages in thread
From: Paweł Sikora @ 2005-09-17 11:30 UTC (permalink / raw)
To: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
Hi,
Attached patch fixes gcc warnings:
(...)
net/ipv4/netfilter/ipt_random.c: In function `ipt_rand_checkentry':
net/ipv4/netfilter/ipt_random.c:55: warning: unsigned int format,
different type arg (arg 3)
net/ipv6/netfilter/ip6t_random.c: In function `ip6t_rand_checkentry':
net/ipv6/netfilter/ip6t_random.c:58: warning: unsigned int format,
different type arg (arg 3)
net/ipv6/netfilter/ip6t_random.c: At top level:
net/ipv6/netfilter/ip6t_random.c:76: warning: initialization
from incompatible pointer type
Regards,
Paweł.
--
The only thing necessary for the triumph of evil
is for good men to do nothing.
- Edmund Burke
[-- Attachment #2: random.diff --]
[-- Type: text/x-diff, Size: 1391 bytes --]
Index: patchlets/random/linux-2.6/net/ipv4/netfilter/ipt_random.c
===================================================================
--- patchlets/random/linux-2.6/net/ipv4/netfilter/ipt_random.c (revision 4262)
+++ patchlets/random/linux-2.6/net/ipv4/netfilter/ipt_random.c (working copy)
@@ -52,7 +52,7 @@
if (matchsize != IPT_ALIGN(sizeof(struct ipt_rand_info))) {
printk("ipt_random: matchsize %u != %u\n", matchsize,
- IPT_ALIGN(sizeof(struct ipt_rand_info)));
+ (unsigned)IPT_ALIGN(sizeof(struct ipt_rand_info)));
return 0;
}
Index: patchlets/random/linux-2.6/net/ipv6/netfilter/ip6t_random.c
===================================================================
--- patchlets/random/linux-2.6/net/ipv6/netfilter/ip6t_random.c (revision 4262)
+++ patchlets/random/linux-2.6/net/ipv6/netfilter/ip6t_random.c (working copy)
@@ -25,8 +25,7 @@
const struct net_device *out,
const void *matchinfo,
int offset,
- const void *hdr,
- u_int16_t datalen,
+ unsigned int protoff,
int *hotdrop)
{
/* Parameters from userspace */
@@ -55,7 +54,7 @@
if (matchsize != IP6T_ALIGN(sizeof(struct ip6t_rand_info))) {
printk("ip6t_random: matchsize %u != %u\n", matchsize,
- IP6T_ALIGN(sizeof(struct ip6t_rand_info)));
+ (unsigned)IP6T_ALIGN(sizeof(struct ip6t_rand_info)));
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ip{,6}t_random / fix build warnings.
2005-09-17 11:30 ip{,6}t_random / fix build warnings Paweł Sikora
@ 2005-09-18 6:15 ` David S. Miller
2005-09-19 15:05 ` Harald Welte
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2005-09-18 6:15 UTC (permalink / raw)
To: pluto; +Cc: netfilter-devel
From: Pawe^[$,1 b^[(B Sikora <pluto@agmk.net>
Date: Sat, 17 Sep 2005 13:30:59 +0200
> Attached patch fixes gcc warnings:
>
Don't cast the value, use the correct "%Zu" and "%Zd"
size_t printf format strings instead as that's what the
compiler is warning about.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ip{,6}t_random / fix build warnings.
2005-09-17 11:30 ip{,6}t_random / fix build warnings Paweł Sikora
2005-09-18 6:15 ` David S. Miller
@ 2005-09-19 15:05 ` Harald Welte
1 sibling, 0 replies; 3+ messages in thread
From: Harald Welte @ 2005-09-19 15:05 UTC (permalink / raw)
To: Paweł Sikora; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 525 bytes --]
On Sat, Sep 17, 2005 at 01:30:59PM +0200, Paweł Sikora wrote:
> Hi,
>
> Attached patch fixes gcc warnings:
Applied with modifications (use %Zd).
--
- Harald Welte <laforge@netfilter.org> http://netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-19 15:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-17 11:30 ip{,6}t_random / fix build warnings Paweł Sikora
2005-09-18 6:15 ` David S. Miller
2005-09-19 15:05 ` Harald Welte
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.