Fix building with metar but without xoap
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 8 Nov 2009 17:00:13 +0000 (18:00 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 8 Nov 2009 17:00:13 +0000 (18:00 +0100)
doc/variables.xml
src/weather.c

index 158d703..3985b26 100644 (file)
             </command>
             <option>string</option>
         </term>
-        <listitem>Evalutates given string according to the rules of
+        <listitem>Evaluates given string according to the rules of
         TEXT interpretation, i.e. parsing any contained text object
         specifications into their output, any occuring '$$' into a
         single '$' and so on. The output is then being parsed
index 2d99c08..2dd1aae 100644 (file)
@@ -38,6 +38,7 @@
 #ifdef XOAP
 #include <libxml/parser.h>
 #include <libxml/xpath.h>
+#endif /* XOAP */
 
 /* WEATHER data */
 typedef struct PWEATHER_ {
@@ -70,7 +71,6 @@ typedef struct PWEATHER_FORECAST_ {
        int hmid[FORECAST_DAYS];
        int ppcp[FORECAST_DAYS];
 } PWEATHER_FORECAST;
-#endif /* XOAP */
 
 /* Xpath expressions for XOAP xml parsing */
 #define NUM_XPATH_EXPRESSIONS_CC 8
@@ -827,9 +827,11 @@ static void weather_process_info(char *p, int p_max_size, char *uri, char *data_
        timed_thread_unlock(curloc->p_timed_thread);
 }
 
+#ifdef XOAP
 /* xoap suffix for weather from weather.com */
 static char *xoap_cc = NULL;
 static char *xoap_df = NULL;
+#endif /* XOAP */
 
 static int process_weather_uri(char *uri, char *locID, int dayf UNUSED_ATTR)
 {