aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-12 13:15:49 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-12 13:15:49 +0000
commitbf102389474141ed0928b7ff741c1e7e0d1e8b33 (patch)
tree7ddedf777b9414a1aff8f8081dfa1197bdac9446
parent9c2f0c5c3442114e789d9f39832343aa5ee0784f (diff)
downloadbusybox-w32-bf102389474141ed0928b7ff741c1e7e0d1e8b33.tar.gz
busybox-w32-bf102389474141ed0928b7ff741c1e7e0d1e8b33.tar.bz2
busybox-w32-bf102389474141ed0928b7ff741c1e7e0d1e8b33.zip
- remove warning about redeclaration of __constant_htons
- remove warning about format '%ld' expects type 'long int *', but argument #num has type 'long unsigned int *' git-svn-id: svn://busybox.net/trunk/busybox@13258 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--networking/libiproute/iptunnel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index 52396efe8..23b5d5013 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -1,10 +1,7 @@
1/* 1/*
2 * iptunnel.c "ip tunnel" 2 * iptunnel.c "ip tunnel"
3 * 3 *
4 * This program is free software; you can redistribute it and/or 4 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 * 5 *
9 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
10 * 7 *
@@ -31,7 +28,9 @@
31#include <net/if_arp.h> 28#include <net/if_arp.h>
32 29
33#include <asm/types.h> 30#include <asm/types.h>
31#ifndef __constant_htons
34#define __constant_htons htons 32#define __constant_htons htons
33#endif
35#include <linux/if_tunnel.h> 34#include <linux/if_tunnel.h>
36 35
37#include "rt_names.h" 36#include "rt_names.h"
@@ -468,7 +467,7 @@ static int do_tunnels_list(struct ip_tunnel_parm *p)
468 bb_error_msg("Wrong format of /proc/net/dev. Sorry."); 467 bb_error_msg("Wrong format of /proc/net/dev. Sorry.");
469 return -1; 468 return -1;
470 } 469 }
471 if (sscanf(ptr, "%ld%ld%ld%ld%ld%ld%ld%*d%ld%ld%ld%ld%ld%ld%ld", 470 if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu",
472 &rx_bytes, &rx_packets, &rx_errs, &rx_drops, 471 &rx_bytes, &rx_packets, &rx_errs, &rx_drops,
473 &rx_fifo, &rx_frame, &rx_multi, 472 &rx_fifo, &rx_frame, &rx_multi,
474 &tx_bytes, &tx_packets, &tx_errs, &tx_drops, 473 &tx_bytes, &tx_packets, &tx_errs, &tx_drops,