summaryrefslogtreecommitdiff
path: root/misc/wmweather+/files/patch-wmweather+.c
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-07-31 13:42:33 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-07-31 13:42:33 +0000
commitf0601dad486071b7cbd8ae081b5af3c48d3bb03b (patch)
tree2e590746d0cf689d31086d631a408f896e32027f /misc/wmweather+/files/patch-wmweather+.c
parentUpdate to version 2.10 (diff)
Update to 2.9
PR: ports/69523 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=115150
Diffstat (limited to 'misc/wmweather+/files/patch-wmweather+.c')
-rw-r--r--misc/wmweather+/files/patch-wmweather+.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/misc/wmweather+/files/patch-wmweather+.c b/misc/wmweather+/files/patch-wmweather+.c
index dfc56f2d8529..bb1d19b0b026 100644
--- a/misc/wmweather+/files/patch-wmweather+.c
+++ b/misc/wmweather+/files/patch-wmweather+.c
@@ -1,6 +1,6 @@
---- wmweather+.c.orig Sun Mar 23 01:04:41 2003
-+++ wmweather+.c Fri Apr 11 02:07:45 2003
-@@ -103,7 +103,7 @@
+--- wmweather+.c.old Tue Mar 30 05:17:20 2004
++++ wmweather+.c Thu Jul 22 17:26:54 2004
+@@ -104,7 +104,7 @@
/**********************************
* Prototypes
**********************************/
@@ -9,20 +9,3 @@
void printversion(void);
int readconf(char *file);
int parse_option(char *option, char *value);
-@@ -671,12 +671,12 @@
- F("Please specify a METAR station.\n See http://www.nws.noaa.gov/tg/siteloc.shtml\n");
- }
- if(latitude==999){{
-- time_t t=0;
- int flag=0;
--
-- localtime(&t);
-+ time_t t=time(NULL);
-+ struct tm *tm;
-+ tm=gmtime(&t);
- latitude=0;
-- longitude=timezone/240;
-+ longitude=tm->tm_gmtoff/240;
- if(longitude<0){
- flag=1;
- longitude=-longitude;