Skip to content

Commit

Permalink
Fix gpx.log ---> gpx->log in gpx_sio_open(). Also, change my added co…
Browse files Browse the repository at this point in the history
…de to conform to coding style of 'if(' rather than 'if ('.
  • Loading branch information
dcnewman committed May 30, 2015
1 parent 99e8d3e commit 327ab31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gpx/gpx-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ int gpx_sio_open(Gpx *gpx, const char *filename, speed_t baud_rate,
struct termios tp;
int port;

if (sio_port)
if(sio_port)
*sio_port = -1;

// open and configure the serial port
Expand Down Expand Up @@ -284,8 +284,8 @@ int gpx_sio_open(Gpx *gpx, const char *filename, speed_t baud_rate,
exit(-1);
}

if(gpx.flag.verboseMode) fprintf(gpx.log, "Communicating via: %s" EOL, filename);
if (sio_port)
if(gpx->flag.verboseMode) fprintf(gpx->log, "Communicating via: %s" EOL, filename);
if(sio_port)
*sio_port = port;
}
#endif
Expand Down

0 comments on commit 327ab31

Please sign in to comment.