patch-curses_c 825 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- mtr-0.75.orig/curses.c 2008-08-19 18:55:48.000000000 +0200
  3. +++ mtr-0.75/curses.c 2008-10-10 15:04:37.000000000 +0200
  4. @@ -241,7 +241,7 @@ int mtr_curses_keyaction(void)
  5. return ActionNone;
  6. }
  7. if (tolower(c) == 'j') {
  8. - if( index(fld_active, 'N') ) {
  9. + if( strchr(fld_active, 'N') ) {
  10. strcpy(fld_active, "DR AGJMXI"); /* GeoMean and jitter */
  11. } else {
  12. strcpy(fld_active, "LS NABWV"); /* default */
  13. @@ -328,7 +328,7 @@ void mtr_curses_hosts(int startstat)
  14. if (j == -1) continue;
  15. /* temporay hack for stats usec to ms... */
  16. - if( index( data_fields[j].format, 'f' ) ) {
  17. + if( strchr( data_fields[j].format, 'f' ) ) {
  18. sprintf(buf + hd_len, data_fields[j].format,
  19. data_fields[j].net_xxx(at) /1000.0 );
  20. } else {