mirror of
https://github.com/curl/curl.git
synced 2026-06-07 16:54:16 +03:00
symbols.pl: enable warnings, fix them
This commit is contained in:
parent
35eaab5ced
commit
f5bd582e79
1 changed files with 5 additions and 2 deletions
|
|
@ -44,12 +44,15 @@
|
|||
# #endif
|
||||
#
|
||||
#
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
open F, "<symbols-in-versions";
|
||||
|
||||
sub str2num {
|
||||
my ($str)=@_;
|
||||
if($str =~ /([0-9]*)\.([0-9]*)\.*([0-9]*)/) {
|
||||
return sprintf("0x%06x", $1<<16 | $2 << 8 | $3);
|
||||
if($str && $str =~ /([0-9]*)\.([0-9]*)\.*([0-9]*)/) {
|
||||
return sprintf("0x%06x", $1 <<16 | $2 << 8 | ($3 || '0'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue