summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-15 03:53:18 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-15 03:53:18 +0530
commitb3065b6d189578e31d6f33567b4bfcd5efb165a9 (patch)
tree1184daafbf9705f5f4d8000d449e26553f682583 /src
parent34e23233ce2bdf723c6b716e3b11c15e4dd34786 (diff)
downloadtinyproxy-b3065b6d189578e31d6f33567b4bfcd5efb165a9.tar.gz
tinyproxy-b3065b6d189578e31d6f33567b4bfcd5efb165a9.zip
Exit with proper status in case of bad commandline arguments
Diffstat (limited to '')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0e0478c..1a84d38 100644
--- a/src/main.c
+++ b/src/main.c
@@ -198,9 +198,12 @@ process_cmdline (int argc, char **argv)
break;
case 'h':
- default:
display_usage ();
exit (EX_OK);
+
+ default:
+ display_usage ();
+ exit (EX_USAGE);
}
}
}