[FIX] Usability bug fix in server_ctt

- At present the check "help" in argv to call the
   usage() function is not handled as expected
 - In either case the the code goes into the if
   condition and returns EXIT_SUCCESS
 - Fix the minor issue so that code returns this status
   if it identifies --help or -h

Change-Id: I56876ac562647076a5b33259b2ea398b3bc5e584
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
This commit is contained in:
Asish Ganesh
2019-07-05 14:10:17 +02:00
committed by Julius Pfrommer
parent 5afcb642a7
commit 2ef4bfd34b
+1 -1
View File
@@ -456,7 +456,7 @@ int main(int argc, char **argv) {
signal(SIGTERM, stopHandler);
for(int i = 1; i < argc; i++) {
if(strcmp(argv[i], "--help") ||
if(strcmp(argv[i], "--help") == 0 ||
strcmp(argv[i], "-h") == 0) {
usage();
return EXIT_SUCCESS;