diff options
author | haesbaert <haesbaert@openbsd.org> | 2012-04-14 11:47:54 +0000 |
---|---|---|
committer | haesbaert <haesbaert@openbsd.org> | 2012-04-14 11:47:54 +0000 |
commit | 6bd6e56b8d7bd59c92c6f334316c31806b60dd20 (patch) | |
tree | d3b941d25138f9f128e7d3fe9bda0139d4051ee3 /usr.sbin/sasyncd | |
parent | Add CDIAGFLAGS infrastructure. (diff) | |
download | wireguard-openbsd-6bd6e56b8d7bd59c92c6f334316c31806b60dd20.tar.xz wireguard-openbsd-6bd6e56b8d7bd59c92c6f334316c31806b60dd20.zip |
Don't return from main with 2 uppon issuing double -c option, print
proper usage() message.
ok mikeb@
"looks good" deraadt@
Diffstat (limited to 'usr.sbin/sasyncd')
-rw-r--r-- | usr.sbin/sasyncd/sasyncd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sasyncd/sasyncd.c b/usr.sbin/sasyncd/sasyncd.c index 46a14c401ab..e72c30d4d5f 100644 --- a/usr.sbin/sasyncd/sasyncd.c +++ b/usr.sbin/sasyncd/sasyncd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sasyncd.c,v 1.20 2010/06/16 17:39:05 reyk Exp $ */ +/* $OpenBSD: sasyncd.c,v 1.21 2012/04/14 11:47:54 haesbaert Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -159,7 +159,7 @@ main(int argc, char **argv) switch (ch) { case 'c': if (cfgfile) - return 2; + usage(); cfgfile = optarg; break; case 'd': |