X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fmkerr.pl;h=e812b9fc006d8b0194c0cf8955fc28743dccbd83;hp=33b904f9ee1d3c680468c9a4a1208873210610c3;hb=016cadfb542569dc72a7523fd12a03b21d075336;hpb=487550b61d9ae3f4d293241750046ff01632e303 diff --git a/util/mkerr.pl b/util/mkerr.pl index 33b904f9ee..e812b9fc00 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -53,6 +53,7 @@ while() { if(/^L\s+(\S+)\s+(\S+)\s+(\S+)/) { $hinc{$1} = $2; + $libinc{$2} = $1; $cskip{$3} = $1; if($3 ne "NONE") { $csrc{$1} = $3; @@ -74,7 +75,7 @@ close IN; # Scan each header file in turn and make a list of error codes # and function names -while (($lib, $hdr) = each %hinc) +while (($hdr, $lib) = each %libinc) { next if($hdr eq "NONE"); print STDERR "Scanning header file $hdr\n" if $debug; @@ -257,6 +258,7 @@ foreach $lib (keys %csrc) /* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. */ +void ERR_load_${lib}_strings(void); /* Error codes for the $lib functions. */ @@ -288,7 +290,6 @@ EOF } #endif #endif - EOF close OUT;