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:42:50 +0000 (09:42 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
util/ck_errf.pl
util/mkerr.pl

index f13af5c50b4ec80095dbdb82970cdea3cb41bf8f..1a8665ab6a1b45976baeb7287c58be64e91ed1a9 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 ee23a8291242afc6d5a16fdba84704279c358a57..bf953884c7fa581bfc19b43bf7a0e4f256f99333 100644 (file)
@@ -250,7 +250,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/;