diff options
author | RalphNiemeyer <rniemeyer@de.adit-jv.com> | 2017-03-23 10:04:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 10:04:53 +0100 |
commit | 7a1c8bd5272a3a8c5d8c88c5c66ebf8a23c6429f (patch) | |
tree | 546abe7fa8b7108ff7d76de24532234acca50fdb /src/console/dlt-control.c | |
parent | 84c35df786d30b5fe7828b8400fe7b0d6c087138 (diff) | |
parent | 859802afd10d159b9e370058bca53c8c12bba2f5 (diff) | |
download | DLT-daemon-7a1c8bd5272a3a8c5d8c88c5c66ebf8a23c6429f.tar.gz |
Merge pull request #7 from clipka/devel_dlt_client_cleanup_fix
dlt-client: fix dlt_client_cleanup memory handling
Diffstat (limited to 'src/console/dlt-control.c')
-rw-r--r-- | src/console/dlt-control.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/console/dlt-control.c b/src/console/dlt-control.c index 8a66d0a..832343b 100644 --- a/src/console/dlt-control.c +++ b/src/console/dlt-control.c @@ -473,9 +473,12 @@ int main(int argc, char* argv[]) { for (index = optind; index < argc; index++) { - g_dltclient.servIP = argv[index]; + if(dlt_client_set_server_ip(&g_dltclient, argv[index]) == -1) + { + pr_error("set server ip didn't succeed\n"); + return -1; + } } - if (g_dltclient.servIP == 0) { /* no hostname selected, show usage and terminate */ @@ -489,9 +492,12 @@ int main(int argc, char* argv[]) { for (index = optind; index < argc; index++) { - g_dltclient.serialDevice = argv[index]; + if(dlt_client_set_serial_device(&g_dltclient, argv[index]) == -1) + { + pr_error("set serial device didn't succeed\n"); + return -1; + } } - if (g_dltclient.serialDevice == 0) { /* no serial device name selected, show usage and terminate */ |