argc = sscanf(arg, "%119s %8s %31s %f", uri, locID, data_type, &interval);
if (argc >= 3) {
- if (process_weather_uri(uri, locID)) {
+ if (process_weather_uri(uri, locID, 0)) {
free(data_type);
free(uri);
free(locID);
argc = sscanf(arg, "%119s %8s %1u %31s %f", uri, locID, &day, data_type, &interval);
if (argc >= 4) {
- if (process_weather_uri(uri, locID)) {
+ if (process_weather_uri(uri, locID, 1)) {
free(data_type);
free(uri);
free(locID);
}
#endif /* XOAP */
-int process_weather_uri(char *uri, char *locID)
+int process_weather_uri(char *uri, char *locID, int dayf)
{
/* locID MUST BE upper-case */
char *tmp_p = locID;
free(uri);
uri = NULL;
}
- } else
+ } else
#endif /* XOAP */
if (strstr(uri, "weather.noaa.gov")) {
strcat(uri, locID);
#ifdef XOAP
void weather_forecast_process_info(char *p, int p_max_size, char *uri, unsigned int day, char *data_type, int interval);
#endif /* XOAP */
-int process_weather_uri(char *uri, char *locID);
+int process_weather_uri(char *uri, char *locID, int dayf);
#ifdef XOAP
void load_xoap_keys(void);