mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
add one missing ifdef to conditionally compile weather code
This commit is contained in:
parent
806b840646
commit
7b38e810f2
@ -8912,12 +8912,14 @@ static void load_config_file_x11(const char *f)
|
|||||||
}
|
}
|
||||||
#endif /* X11 */
|
#endif /* X11 */
|
||||||
|
|
||||||
|
#ifdef WEATHER
|
||||||
/*
|
/*
|
||||||
* TODO: make the xoap keys file readable from the config file
|
* TODO: make the xoap keys file readable from the config file
|
||||||
* make the keys directly readable from the config file
|
* make the keys directly readable from the config file
|
||||||
* make the xoap keys file giveable as a command line option
|
* make the xoap keys file giveable as a command line option
|
||||||
*/
|
*/
|
||||||
static void load_xoap_keys(void) {
|
static void load_xoap_keys(void)
|
||||||
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *par = (char *) malloc(11 * sizeof(char));
|
char *par = (char *) malloc(11 * sizeof(char));
|
||||||
char *key = (char *) malloc(17 * sizeof(char));
|
char *key = (char *) malloc(17 * sizeof(char));
|
||||||
@ -8944,6 +8946,7 @@ static void load_xoap_keys(void) {
|
|||||||
free(par);
|
free(par);
|
||||||
free(key);
|
free(key);
|
||||||
}
|
}
|
||||||
|
#endif /* WEATHER */
|
||||||
|
|
||||||
static void print_help(const char *prog_name) {
|
static void print_help(const char *prog_name) {
|
||||||
printf("Usage: %s [OPTION]...\n"
|
printf("Usage: %s [OPTION]...\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user