Message ID | 20090604095623.GC7030@cr0.nay.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 56f90a4..11dc869 100644 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl @@ -2,7 +2,7 @@ # # headers_check.pl execute a number of trivial consistency checks # -# Usage: headers_check.pl dir [files...] +# Usage: headers_check.pl dir arch [files...] # dir: dir to look for included files # arch: architecture # files: list of files to check @@ -63,7 +63,7 @@ sub check_include sub check_prototypes { - if ($line =~ m/^\s*extern\b/) { + if ($line =~ m/^\s*extern\b.*\(.*\)/) { printf STDERR "$filename:$lineno: extern's make no sense in userspace\n"; } }