summaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-04-15 05:20:11 -0400
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2017-04-15 05:20:15 -0400
commitb3bec032e082376ba2dbe10da83df82215a41659 (patch)
tree9c0b6b8b2aa23042f975c3238fc3a6a212d23481 /code
parent2cf7f098048ef0c11eb1321747b600230a495c88 (diff)
Treat bad command line usage as error
Since we can not tolerate any kind of error which may result in multicasting failed to run. So even the usage error shall be treated as error too. Change-Id: I5483bb2cebf437ed33ebb79eeeac640f8728a73f Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'code')
-rwxr-xr-xcode/jasmine/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/jasmine/client.c b/code/jasmine/client.c
index 42d996af..20bd3585 100755
--- a/code/jasmine/client.c
+++ b/code/jasmine/client.c
@@ -255,7 +255,7 @@ int main(int argc, char *argv[])
if (argc < 3) {
printf("Usage: %s <local_ip> <server_ip> [port]\n", argv[0]);
- return 0;
+ return -1;
}
if (!inet_aton(argv[1], &local_addr)) {