Commit ed7c3529 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] size_t portability fixes

more size_t fixes (%d -> %zd)
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f30b8d23
...@@ -281,7 +281,7 @@ static int ip_vs_ftp_in(struct ip_vs_app *app, struct ip_vs_conn *cp, ...@@ -281,7 +281,7 @@ static int ip_vs_ftp_in(struct ip_vs_app *app, struct ip_vs_conn *cp,
while (data <= data_limit - 6) { while (data <= data_limit - 6) {
if (strnicmp(data, "PASV\r\n", 6) == 0) { if (strnicmp(data, "PASV\r\n", 6) == 0) {
/* Passive mode on */ /* Passive mode on */
IP_VS_DBG(1-debug, "got PASV at %d of %d\n", IP_VS_DBG(1-debug, "got PASV at %zd of %zd\n",
data - data_start, data - data_start,
data_limit - data_start); data_limit - data_start);
cp->app_data = &ip_vs_ftp_pasv; cp->app_data = &ip_vs_ftp_pasv;
......
...@@ -158,7 +158,7 @@ tcp_snat_handler(struct sk_buff **pskb, ...@@ -158,7 +158,7 @@ tcp_snat_handler(struct sk_buff **pskb,
(*pskb)->len - tcphoff, (*pskb)->len - tcphoff,
cp->protocol, cp->protocol,
(*pskb)->csum); (*pskb)->csum);
IP_VS_DBG(11, "O-pkt: %s O-csum=%d (+%d)\n", IP_VS_DBG(11, "O-pkt: %s O-csum=%d (+%zd)\n",
pp->name, tcph->check, pp->name, tcph->check,
(char*)&(tcph->check) - (char*)tcph); (char*)&(tcph->check) - (char*)tcph);
} }
......
...@@ -166,7 +166,7 @@ udp_snat_handler(struct sk_buff **pskb, ...@@ -166,7 +166,7 @@ udp_snat_handler(struct sk_buff **pskb,
(*pskb)->csum); (*pskb)->csum);
if (udph->check == 0) if (udph->check == 0)
udph->check = 0xFFFF; udph->check = 0xFFFF;
IP_VS_DBG(11, "O-pkt: %s O-csum=%d (+%d)\n", IP_VS_DBG(11, "O-pkt: %s O-csum=%d (+%zd)\n",
pp->name, udph->check, pp->name, udph->check,
(char*)&(udph->check) - (char*)udph); (char*)&(udph->check) - (char*)udph);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment