src/tremashark/stdin_relay.c in trema-0.2.5 vs src/tremashark/stdin_relay.c in trema-0.2.6

- old
+ new

@@ -1,8 +1,8 @@ /* * stdin_relay: An application that relays text string from stdin to tremashark - * + * * Author: Yasunobu Chiba * * Copyright (C) 2008-2012 NEC Corporation * * This program is free software; you can redistribute it and/or modify @@ -153,14 +153,16 @@ void usage( void ) { printf( "Usage: stdin_relay [OPTION]...\n" "\n" - " -s DUMP_SERVICE_NAME dump service name\n" - " -n, --name=SERVICE_NAME service name\n" - " -l, --logging_level=LEVEL set logging level\n" - " -h, --help display this help and exit\n" + " -s DUMP_SERVICE_NAME dump service name\n" + " -n, --name=SERVICE_NAME service name\n" + " -l, --logging_level=LEVEL set logging level\n" + " -g, --syslog output log messages to syslog\n" + " -f, --logging_facility=FACILITY set syslog facility\n" + " -h, --help display this help and exit\n" ); } static void @@ -172,17 +174,17 @@ static void parse_options( int *argc, char **argv[] ) { int opt; - while( 1 ) { + while ( 1 ) { opt = getopt( *argc, *argv, "s:" ); - if( opt < 0 ){ + if ( opt < 0 ) { break; } - switch ( opt ){ + switch ( opt ) { case 's': if ( optarg && dump_service_name == NULL ) { dump_service_name = xstrdup( optarg ); } else {