95_holiday.pm: cosmetic changes (Forum #44621)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-25 12:58:12 +00:00
parent 12cc7f2d77
commit f729b1f2d7

View File

@@ -6,7 +6,7 @@ use strict;
use warnings; use warnings;
use POSIX; use POSIX;
sub holiday_refresh($$); sub holiday_refresh($;$);
##################################### #####################################
sub sub
@@ -27,7 +27,7 @@ holiday_Define($$)
{ {
my ($hash, $def) = @_; my ($hash, $def) = @_;
return holiday_refresh($hash->{NAME}, undef) if($init_done); return holiday_refresh($hash->{NAME}) if($init_done);
InternalTimer(gettimeofday()+1, "holiday_refresh", $hash->{NAME}, 0); InternalTimer(gettimeofday()+1, "holiday_refresh", $hash->{NAME}, 0);
return undef; return undef;
} }
@@ -41,7 +41,7 @@ holiday_Undef($$)
} }
sub sub
holiday_refresh($$) holiday_refresh($;$)
{ {
my ($name, $fordate) = (@_); my ($name, $fordate) = (@_);
my $hash = $defs{$name}; my $hash = $defs{$name};