Skip to content

Commit 07218e9

Browse files
committed
Small tidy and switch to release build by default
1 parent d779f4c commit 07218e9

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build configuration
22
VERBOSE?=0
3-
DEBUG=1
3+
#DEBUG=1
44
SCREEN_HANDLING=1
55
MAKE_EXPERIMENTAL=1
66

Src/orbzmq.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ struct
5151
char *file; /* File host connection */
5252
bool endTerminate; /* Terminate when file/socket "ends" */
5353

54-
} options = {
55-
.forceITMSync = true,
56-
.tpiuChannel = 1,
57-
.bindUrl = DEFAULT_ZMQ_BIND_URL,
58-
.port = NWCLIENT_SERVER_PORT,
59-
.server = "localhost"
54+
} options =
55+
{
56+
.forceITMSync = true,
57+
.tpiuChannel = 1,
58+
.bindUrl = DEFAULT_ZMQ_BIND_URL,
59+
.port = NWCLIENT_SERVER_PORT,
60+
.server = "localhost"
6061
};
6162

6263
struct
@@ -466,7 +467,7 @@ void _printHelp( const char *const progName )
466467
fprintf( stdout, " -f, --input-file: <filename> Take input from specified file" EOL );
467468
fprintf( stdout, " -h, --help: This help" EOL );
468469
fprintf( stdout, " -n, --itm-sync: Enforce sync requirement for ITM (i.e. ITM needs to issue syncs)" EOL );
469-
fprintf( stdout, " -s, --server: <Server>:<Port> to use, default %s:%d" EOL, options.server,options.port );
470+
fprintf( stdout, " -s, --server: <Server>:<Port> to use, default %s:%d" EOL, options.server, options.port );
470471
fprintf( stdout, " -t, --tpiu: <channel>: Use TPIU decoder on specified channel (normally 1)" EOL );
471472
fprintf( stdout, " -v, --verbose: <level> Verbose mode 0(errors)..3(debug)" EOL );
472473
fprintf( stdout, " -V, --version: Print version and exit" EOL );
@@ -716,13 +717,13 @@ bool _processOptions( int argc, char *argv[] )
716717

717718
return false;
718719

719-
// ------------------------------------
720-
721-
case 'z':
720+
// ------------------------------------
721+
722+
case 'z':
722723
options.bindUrl = optarg;
723724
break;
724725

725-
// ------------------------------------
726+
// ------------------------------------
726727
default:
727728
return false;
728729
// ------------------------------------
@@ -856,7 +857,7 @@ int main( int argc, char *argv[] )
856857

857858
_r.zmqContext = zmq_ctx_new();
858859
_r.zmqSocket = zmq_socket( _r.zmqContext, ZMQ_PUB );
859-
zmq_bind( _r.zmqSocket, "tcp://*:3442");//options.bindUrl );
860+
zmq_bind( _r.zmqSocket, "tcp://*:3442" ); //options.bindUrl );
860861

861862
/* Reset the TPIU handler before we start */
862863
TPIUDecoderInit( &_r.t );

0 commit comments

Comments
 (0)