summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimon <simon@openbsd.org>2008-09-06 10:49:28 +0000
committersimon <simon@openbsd.org>2008-09-06 10:49:28 +0000
commit825db76288f2fa3c10298b05c69b47b45ad16262 (patch)
tree9b6f900eb9d93ddc722551f5ca5a660666ee2e6e
parentKill some more unused struct fields and the cases for them. (diff)
downloadwireguard-openbsd-825db76288f2fa3c10298b05c69b47b45ad16262.tar.xz
wireguard-openbsd-825db76288f2fa3c10298b05c69b47b45ad16262.zip
Calling --help shouldn't be an error condition, so exit with status 0
instead of 1, and make it consistent with gnu. ok ckuethe@
-rw-r--r--usr.bin/pkg-config/pkg-config4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index 189c960b98d..1dda69f8ca3 100644
--- a/usr.bin/pkg-config/pkg-config
+++ b/usr.bin/pkg-config/pkg-config
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $OpenBSD: pkg-config,v 1.21 2008/08/21 21:57:45 simon Exp $
+# $OpenBSD: pkg-config,v 1.22 2008/09/06 10:49:28 simon Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -485,7 +485,7 @@ Usage: $0 [options]
--variable var package - return the definition of <var> in <package>
EOF
;
- exit 1;
+ exit 0;
}
# do we meet/beat the version the caller requested?