From: Ján Tomko Date: Tue, 14 Jun 2016 16:42:12 +0000 (+0200) Subject: check-spacing: remove virAssertCmpInt exception X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=633daa4c571b29f554b8f7021a912f1566c1d427;p=libvirt.git check-spacing: remove virAssertCmpInt exception The macro is now called testAssertEq and no longer takes an operator as its argument. --- diff --git a/build-aux/check-spacing.pl b/build-aux/check-spacing.pl index a0fb1109de..becdbe9332 100755 --- a/build-aux/check-spacing.pl +++ b/build-aux/check-spacing.pl @@ -160,11 +160,8 @@ foreach my $file (@ARGV) { } # Require spaces around assignment '=', compounds and '==' - # with the exception of virAssertCmpInt() - $tmpdata = $data; - $tmpdata =~ s/(virAssertCmpInt\(.* ).?=,/$1op,/; - if ($tmpdata =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=[^=]/ || - $tmpdata =~ /=[^= \\\n]/) { + if ($data =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=/ || + $data =~ /=[^= \\\n]/) { print "Spacing around '=' or '==':\n"; print "$file:$.: $line"; $ret = 1;