Changeset 1781:43f928932e6c in roaraudio
- Timestamp:
- 05/19/09 20:12:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarctl.c
r1631 r1781 48 48 " help - Show this help\n" 49 49 " sleep TIME - Sleeps for TIME seconds\n" 50 #ifdef ROAR_HAVE_GETTIMEOFDAY 50 51 " ping NUM - Do NUM pings using NOOP commands\n" 52 #endif 51 53 "\n" 52 54 " standby, off - Go into standby mode\n" … … 84 86 } 85 87 88 #ifdef ROAR_HAVE_GETTIMEOFDAY 86 89 int ping (struct roar_connection * con, int num) { 87 90 struct timeval try, ans; … … 129 132 return 0; 130 133 } 134 #endif 131 135 132 136 void server_oinfo (struct roar_connection * con) { … … 671 675 672 676 } else if ( !strcmp(k, "ping") ) { 677 #ifdef ROAR_HAVE_GETTIMEOFDAY 673 678 if ( ping(&con, atoi(argv[++i])) == -1 ) { 674 679 fprintf(stderr, "Error: can not ping\n"); 675 680 } 681 #else 682 fprintf(stderr, "Error: ping not supported.\n"); 683 i++; 684 #endif 676 685 677 686 } else if ( !strcmp(k, "standby") || !strcmp(k, "off") ) {
Note: See TracChangeset
for help on using the changeset viewer.