projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
806b840
)
add one missing ifdef to conditionally compile weather code
author
Cesare Tirabassi
<norsetto@ubuntu.com>
Sat, 18 Jul 2009 14:07:17 +0000
(16:07 +0200)
committer
Cesare Tirabassi
<norsetto@ubuntu.com>
Sat, 18 Jul 2009 14:07:17 +0000
(16:07 +0200)
src/conky.c
patch
|
blob
|
history
diff --git
a/src/conky.c
b/src/conky.c
index
97792a6
..
84edfb3
100644
(file)
--- a/
src/conky.c
+++ b/
src/conky.c
@@
-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
* make the keys directly readable from the config file
* make the xoap keys file giveable as a command line option
*/
/*
* TODO: make the xoap keys file 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
*/
-static void load_xoap_keys(void) {
+static void load_xoap_keys(void)
+{
FILE *fp;
char *par = (char *) malloc(11 * sizeof(char));
char *key = (char *) malloc(17 * sizeof(char));
FILE *fp;
char *par = (char *) malloc(11 * sizeof(char));
char *key = (char *) malloc(17 * sizeof(char));
@@
-8944,6
+8946,7
@@
static void load_xoap_keys(void) {
free(par);
free(key);
}
free(par);
free(key);
}
+#endif /* WEATHER */
static void print_help(const char *prog_name) {
printf("Usage: %s [OPTION]...\n"
static void print_help(const char *prog_name) {
printf("Usage: %s [OPTION]...\n"