diff options
author | Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com> | 2020-10-13 17:07:56 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | 1b3080cea4bb947917f7512ec530f79ce2481b08 (patch) | |
tree | a399bda88c8d0143ed0a6df7dccd83c75b41f121 /src/console/dlt-passive-node-ctrl.c | |
parent | 84788584b2accd96776762a688381737e1483361 (diff) | |
download | DLT-daemon-1b3080cea4bb947917f7512ec530f79ce2481b08.tar.gz |
console :fix conversion warnings
- Explicit type conversion from 'signed' to 'unsigned'
Signed-off-by: Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>
Diffstat (limited to 'src/console/dlt-passive-node-ctrl.c')
-rw-r--r-- | src/console/dlt-passive-node-ctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/dlt-passive-node-ctrl.c b/src/console/dlt-passive-node-ctrl.c index c3a7172..6a02667 100644 --- a/src/console/dlt-passive-node-ctrl.c +++ b/src/console/dlt-passive-node-ctrl.c @@ -344,7 +344,7 @@ static int parse_args(int argc, char *argv[]) state = (int)strtol(optarg, NULL, 10); if ((state == DLT_NODE_CONNECT) || (state == DLT_NODE_DISCONNECT)) { - set_connection_state(state); + set_connection_state((unsigned int) state); set_command(DLT_SERVICE_ID_PASSIVE_NODE_CONNECT); } else { @@ -363,7 +363,7 @@ static int parse_args(int argc, char *argv[]) set_command(DLT_SERVICE_ID_PASSIVE_NODE_CONNECTION_STATUS); break; case 't': - set_timeout(strtol(optarg, NULL, 10)); + set_timeout((int) strtol(optarg, NULL, 10)); break; case 'v': set_verbosity(1); |