about summary refs log tree commit homepage
path: root/lib/PublicInbox/NetReader.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-30 09:24:35 +0000
committerEric Wong <e@80x24.org>2021-04-30 19:59:46 +0000
commit61a81c1da072e64bad715e8db79432ab2d277c30 (patch)
treeb37dc7f152ecf50aa3e49604db11359bcbd11305 /lib/PublicInbox/NetReader.pm
parent863bb9d1b131ea5933b58e485300dca030d6ade1 (diff)
downloadpublic-inbox-61a81c1da072e64bad715e8db79432ab2d277c30.tar.gz
We don't use these subs elsewhere, so stick prototypes on them
to give them a little extra checking.
Diffstat (limited to 'lib/PublicInbox/NetReader.pm')
-rw-r--r--lib/PublicInbox/NetReader.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm
index 3fc37b10..b9365c05 100644
--- a/lib/PublicInbox/NetReader.pm
+++ b/lib/PublicInbox/NetReader.pm
@@ -27,7 +27,7 @@ sub uri_section ($) {
 sub auth_anon_cb { '' }; # for Mail::IMAPClient::Authcallback
 
 # mic_for may prompt the user and store auth info, prepares mic_get
-sub mic_for { # mic = Mail::IMAPClient
+sub mic_for ($$$$) { # mic = Mail::IMAPClient
         my ($self, $url, $mic_args, $lei) = @_;
         require PublicInbox::URIimap;
         my $uri = PublicInbox::URIimap->new($url);
@@ -133,7 +133,7 @@ E: <$uri> STARTTLS requested and failed
         $nn;
 }
 
-sub nn_for ($$$;$) { # nn = Net::NNTP
+sub nn_for ($$$$) { # nn = Net::NNTP
         my ($self, $uri, $nn_args, $lei) = @_;
         my $sec = uri_section($uri);
         my $nntp_opt = $self->{nntp_opt}->{$sec} //= {};