From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/mtr/patches/patch-curses_c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/mtr/patches/patch-curses_c (limited to 'package/mtr/patches/patch-curses_c') diff --git a/package/mtr/patches/patch-curses_c b/package/mtr/patches/patch-curses_c new file mode 100644 index 000000000..2e04bd4ce --- /dev/null +++ b/package/mtr/patches/patch-curses_c @@ -0,0 +1,21 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- mtr-0.75.orig/curses.c 2008-08-19 18:55:48.000000000 +0200 ++++ mtr-0.75/curses.c 2008-10-10 15:04:37.000000000 +0200 +@@ -241,7 +241,7 @@ int mtr_curses_keyaction(void) + return ActionNone; + } + if (tolower(c) == 'j') { +- if( index(fld_active, 'N') ) { ++ if( strchr(fld_active, 'N') ) { + strcpy(fld_active, "DR AGJMXI"); /* GeoMean and jitter */ + } else { + strcpy(fld_active, "LS NABWV"); /* default */ +@@ -328,7 +328,7 @@ void mtr_curses_hosts(int startstat) + if (j == -1) continue; + + /* temporay hack for stats usec to ms... */ +- if( index( data_fields[j].format, 'f' ) ) { ++ if( strchr( data_fields[j].format, 'f' ) ) { + sprintf(buf + hd_len, data_fields[j].format, + data_fields[j].net_xxx(at) /1000.0 ); + } else { -- cgit v1.2.3