diff options
author | PaulK <contact@paulk.fr> | 2011-12-30 22:10:54 +0100 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2011-12-30 22:10:54 +0100 |
commit | 418317e0bf6020456824f0a6d3c3f4bce3e4b5f3 (patch) | |
tree | df2ca32bf4fba500750b203d68b96808ef2d4306 /tools/modemctrl.c | |
parent | b7d574960edbc33854d59cab7d3be5f4486a47bf (diff) | |
download | external_libsamsung-ipc-418317e0bf6020456824f0a6d3c3f4bce3e4b5f3.zip external_libsamsung-ipc-418317e0bf6020456824f0a6d3c3f4bce3e4b5f3.tar.gz external_libsamsung-ipc-418317e0bf6020456824f0a6d3c3f4bce3e4b5f3.tar.bz2 |
Set negative rc for errors, plus cosmetics
Diffstat (limited to 'tools/modemctrl.c')
-rw-r--r-- | tools/modemctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/modemctrl.c b/tools/modemctrl.c index 168c95e..dc7eaaa 100644 --- a/tools/modemctrl.c +++ b/tools/modemctrl.c @@ -396,7 +396,7 @@ int modem_read_loop(struct ipc_client *client) { rc = ipc_client_recv(client, &resp); - if(rc > 0) { + if(rc < 0) { printf("[E] Can't RECV from modem: please run this again\n"); break; } @@ -533,7 +533,7 @@ int main(int argc, char *argv[]) } else if(strncmp(argv[optind], "start", 5) == 0) { printf("[0] Starting modem on FMT client\n"); rc = modem_start(client_fmt); - if(rc > 0) { + if(rc < 0) { printf("[E] Something went wrong\n"); modem_stop(client_fmt); return 1; |