Rev 4720 | Rev 4732 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4720 | Rev 4731 | ||
---|---|---|---|
Line 147... | Line 147... | ||
147 | int index; |
147 | int index; |
148 | 148 | ||
149 | printf( "Task %d - ", task_get_id()); |
149 | printf( "Task %d - ", task_get_id()); |
150 | printf( "%s\n", NAME ); |
150 | printf( "%s\n", NAME ); |
151 | 151 | ||
152 | for( index = 1; index < argc - 1; ++ index ){ |
152 | for( index = 1; ( index < argc - 1 ) || (( index == argc ) && ( argv[ index ][ 0 ] == '-' )); ++ index ){ |
153 | if( argv[ index ][ 0 ] == '-' ){ |
153 | if( argv[ index ][ 0 ] == '-' ){ |
154 | switch( argv[ index ][ 1 ] ){ |
154 | switch( argv[ index ][ 1 ] ){ |
155 | case 'c': ERROR_PROPAGATE( parse_parameter_int( argc, argv, & index, & count, "count", 0 )); |
155 | case 'c': ERROR_PROPAGATE( parse_parameter_int( argc, argv, & index, & count, "count", 0 )); |
156 | break; |
156 | break; |
157 | case 'f': ERROR_PROPAGATE( parse_parameter_name_int( argc, argv, & index, & family, "address family", 0, parse_address_family )); |
157 | case 'f': ERROR_PROPAGATE( parse_parameter_name_int( argc, argv, & index, & family, "address family", 0, parse_address_family )); |