From f8fc1d101e74fc9f1f9ca57b5e494c2f7bc33bf7 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 21 Dec 2015 20:42:56 +0100 Subject: iptunnel: Fix compile error in ip/tunnel.c I repeatedly failed to get this right, so now I have to clean up my mess afterwards. Fixes: 7d6aadcd0a1dc ("ip{,6}tunnel: have a shared stats parser/printer") Signed-off-by: Phil Sutter --- ip/tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ip') diff --git a/ip/tunnel.c b/ip/tunnel.c index 1dd80922..39f825ba 100644 --- a/ip/tunnel.c +++ b/ip/tunnel.c @@ -208,7 +208,7 @@ void tnl_print_stats(const char *buf) tx_bytes, tx_packets, tx_errs, tx_drops, tx_fifo, tx_colls, tx_carrier, rx_multi; - if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", + if (sscanf(buf, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", &rx_bytes, &rx_packets, &rx_errs, &rx_drops, &rx_fifo, &rx_frame, &rx_multi, &tx_bytes, &tx_packets, &tx_errs, &tx_drops, -- cgit v1.2.3