From a070fa016dadbcc554b25824e31db18b0fb12b88 Mon Sep 17 00:00:00 2001 From: unimatrix27 <> Date: Sun, 25 Mar 2012 20:51:22 +0000 Subject: [PATCH] remove funktion prototypes to avoid conflicts and the known prototype traps git-svn-id: https://svn.fhem.de/fhem/trunk@1389 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_Twilight.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/59_Twilight.pm b/fhem/FHEM/59_Twilight.pm index a0cd79e97..6570973e3 100644 --- a/fhem/FHEM/59_Twilight.pm +++ b/fhem/FHEM/59_Twilight.pm @@ -133,7 +133,7 @@ sub Twilight_Undef($$) { sub twilight_midnight_seconds() { my @time = localtime(); my $secs = ($time[2] * 3600) + ($time[1] * 60) + $time[0]; return $secs; } -sub Twilight_GetUpdate($){ +sub Twilight_GetUpdate{ my ($hash) = @_; my @sunrise_set; @@ -239,7 +239,7 @@ sub Twilight_GetUpdate($){ return 1; } -sub twilight_calc() { +sub twilight_calc { my $latitude=shift; my $longitude=shift; my $horizon=shift; @@ -262,7 +262,7 @@ sub twilight_calc() { return $sunrise, $sunset; } -sub Twilight_getWeatherHorizon(){ +sub Twilight_getWeatherHorizon{ my $location=shift; #my $xml = GetHttpFile("www.google.com:80", "/ig/api?weather=" . $location . "&hl=en"); #$xml =~/\(.*)\<\/current_conditions\>/;