From: Jacob Bachmeyer Date: Thu, 6 Oct 2022 02:05:21 +0000 (-0500) Subject: Fix prototype on ftp_die in gatekeeper script X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8ad3f44b87af17cab113d11bfeaf0fd483332813;p=gatekeeper.git Fix prototype on ftp_die in gatekeeper script Currently, this prototype has no effect because the entire script has been compiled before it is seen. Moving ftp_die to near the beginning of the script will cause the prototype to be checked and the incorrect prototype causes compilation to fail. --- diff --git a/gatekeeper.pl b/gatekeeper.pl index ecd1cb0..ba42600 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1450,7 +1450,7 @@ sub ftp_warn($) { warn $_[0]; } -sub ftp_die($$) { +sub ftp_die($;$) { my $msg = shift; my $exitcode = shift; $exitcode ||= 1;