Fix make errors
authorMatt Caswell <matt@openssl.org>
Wed, 14 Jan 2015 21:26:14 +0000 (21:26 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 22 Jan 2015 09:25:13 +0000 (09:25 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
util/ck_errf.pl
util/mkerr.pl

index f13af5c..1a8665a 100755 (executable)
@@ -21,7 +21,7 @@ foreach $file (@ARGV)
        $func="";
        while (<IN>)
                {
-               if (!/;$/ && /^([a-zA-Z].*[\s*])?([A-Za-z_0-9]+)\(.*[),]/)
+               if (!/;$/ && /^\**([a-zA-Z].*[\s*])?([A-Za-z_0-9]+)\(.*([),]|$)/)
                        {
                        /^([^()]*(\([^()]*\)[^()]*)*)\(/;
                        $1 =~ /([A-Za-z_0-9]*)$/;
index 5033aba..88388f5 100644 (file)
@@ -251,7 +251,7 @@ while (($hdr, $lib) = each %libinc)
 
        if ($gotfile) {
          while(<IN>) {
-               if(/^\#define\s+(\S+)\s+(\S+)/) {
+               if(/^\#\s*define\s+(\S+)\s+(\S+)/) {
                        $name = $1;
                        $code = $2;
                        next if $name =~ /^${lib}err/;