summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-07 22:21:51 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-07 22:21:51 +0000
commite2ec7f70244f8417cad73d40d00acfcfef383d29 (patch)
treee7cf6a3d14561c428446ecf933dde7222e5589ad
parent9487613e07c4edefba85a44592bc22c960ec32cc (diff)
- style consistency
ok ckuethe@
-rw-r--r--usr.bin/pkg-config/pkg-config9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index cb4f6a4a277..72c0699b41b 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.27 2010/12/28 14:31:38 jasper Exp $
+# $OpenBSD: pkg-config,v 1.28 2011/03/07 22:21:50 jasper Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -521,9 +521,7 @@ sub compare
{
my ($a, $b) = @_;
- if ($a eq $b) {
- return 0;
- }
+ return 0 if ($a eq $b);
my @a = split /\./, $a;
my @b = split /\./, $b;
@@ -555,8 +553,7 @@ sub versionmatch
my $value = compare($inst, $want);
if ($op eq '>=') {
return $value >= 0;
- }
- elsif ($op eq '=') {
+ } elsif ($op eq '=') {
return $value == 0;
} elsif ($op eq '!=') {
return $value != 0;