mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 01:12:57 +02:00
general-functions.pl: Explicitely call new system function
Perl seems to just "guess" that someone no longer wants to use the builtin "system" command when there is a function with the same name. I have no idea what kind of liquid they are drinking, but because of the side effects of that stuff, we explicitely call our system() function. Not that that would be necessary, but why not waste a couple more CPU cycles? Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -113,7 +113,7 @@ sub log
|
||||
my $logmessage = $_[0];
|
||||
$logmessage =~ /([\w\W]*)/;
|
||||
$logmessage = $1;
|
||||
system('logger', '-t', $tag, $logmessage);
|
||||
&system('logger', '-t', $tag, $logmessage);
|
||||
}
|
||||
sub setup_default_networks
|
||||
{
|
||||
@@ -1223,7 +1223,7 @@ sub firewall_needs_reload() {
|
||||
}
|
||||
|
||||
sub firewall_reload() {
|
||||
system("/usr/local/bin/firewallctrl");
|
||||
&system("/usr/local/bin/firewallctrl");
|
||||
}
|
||||
|
||||
# Function which will return the used interface for the red network zone (red0, ppp0, etc).
|
||||
|
||||
Reference in New Issue
Block a user