avoid overriding prototypes when the call can be fixed
authorRicardo Signes <rjbs@cpan.org>
Wed, 10 Oct 2012 01:57:14 +0000 (21:57 -0400)
committerRicardo Signes <rjbs@cpan.org>
Mon, 12 Nov 2012 14:18:39 +0000 (09:18 -0500)
commitcde405a6b9b86bd8110f63531b42d89590a4c56e
tree927d6f1c76b0c10f099ca5aeefb856ddb61c6c8e
parentda05251685a76a46e4f4dc49c022a2863ed5bd38
avoid overriding prototypes when the call can be fixed

We don't need to call share with an ampersand.  We can just call it in
the way its prototype implies.  While we're at it, we can fix the
prototype that we use when threads::shared can't be loaded.  Also,
there's no need to fake up lock, because it's already a do-nothing weak
keyword without threads.
lib/perl5db.pl