From 8ad3f44b87af17cab113d11bfeaf0fd483332813 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 5 Oct 2022 21:05:21 -0500 Subject: [PATCH] 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. --- gatekeeper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1