Lines 1-16
Link Here
|
1 |
--- Temperature.cc.bak 2016-08-24 21:28:41.551324000 -0400 |
1 |
--- Temperature.cc.orig 2010-02-07 07:43:52.000000000 +0100 |
2 |
+++ Temperature.cc 2016-08-24 21:26:25.860220000 -0400 |
2 |
+++ Temperature.cc 2019-02-08 16:51:24.158937000 +0100 |
3 |
@@ -20,24 +20,29 @@ |
3 |
@@ -22,22 +22,27 @@ |
4 |
// |
|
|
5 |
|
6 |
#include <X11/Xlib.h> |
4 |
#include <X11/Xlib.h> |
7 |
-#include <iostream.h> |
5 |
#include <iostream> |
8 |
-#include <fstream.h> |
6 |
#include <fstream> |
9 |
-#include <stdlib.h> |
7 |
-#include <stdlib.h> |
10 |
-#include <stdio.h> |
8 |
-#include <stdio.h> |
11 |
-#include <string.h> |
9 |
-#include <string.h> |
12 |
+#include <iostream> |
|
|
13 |
+#include <fstream> |
14 |
+#include <cstdlib> |
10 |
+#include <cstdlib> |
15 |
+#include <cstdio> |
11 |
+#include <cstdio> |
16 |
+#include <cstring> |
12 |
+#include <cstring> |
Lines 45-50
Link Here
|
45 |
sprintf(URL, METAR_URL, mStationId); |
41 |
sprintf(URL, METAR_URL, mStationId); |
46 |
- execlp("wget", "wget", "--cache=off", "--tries=0", verbose, "-O", tmpFile, URL, 0); |
42 |
- execlp("wget", "wget", "--cache=off", "--tries=0", verbose, "-O", tmpFile, URL, 0); |
47 |
+ execlp("wget", "wget", "--no-cache", "--tries=0", verbose, "-O", tmpFile, URL, NULL); |
43 |
+ execlp("wget", "wget", "--no-cache", "--tries=0", verbose, "-O", tmpFile, URL, NULL); |
48 |
cerr << APPNAME << ": could not fetch temperature (wget not found in $PATH)" << endl; |
44 |
std::cerr << APPNAME << ": could not fetch temperature (wget not found in $PATH)" << std::endl; |
49 |
remove(tmpFile); |
45 |
remove(tmpFile); |
50 |
exit(0); |
46 |
exit(0); |