From cf49198176286fcb19e2bf7dacddce9966e319a2 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Mon, 6 Aug 2007 16:42:48 +0000 Subject: [PATCH] Remove freebsd wifi stuff since the API seems to be changed and I have no wifi devices to test it. git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@893 7f574dfc-610e-0410-a909-a81674777703 --- src/common.c | 2 ++ src/conky.c | 2 ++ src/conky.h | 2 ++ src/freebsd.c | 3 +++ 4 files changed, 9 insertions(+) diff --git a/src/common.c b/src/common.c index 233a2b3e..04d13d2c 100644 --- a/src/common.c +++ b/src/common.c @@ -201,8 +201,10 @@ void update_stuff() if (NEED(INFO_DISKIO)) update_diskio(); +#if 0 if (NEED(INFO_WIFI)) update_wifi_stats(); +#endif if (NEED(INFO_MAIL)) update_mail_count(); diff --git a/src/conky.c b/src/conky.c index b3611e11..02f5761a 100644 --- a/src/conky.c +++ b/src/conky.c @@ -2603,6 +2603,7 @@ static struct text_object *construct_text_object(const char *s, const char *arg, else { CRIT_ERR("addr needs argument"); } +#if 0 END OBJ(linkstatus, INFO_WIFI) if(arg) { obj->data.net = get_net_stat(arg); @@ -2610,6 +2611,7 @@ static struct text_object *construct_text_object(const char *s, const char *arg, else { CRIT_ERR("linkstatus needs argument"); } +#endif END OBJ(tail, 0) char buf[64]; int n1, n2; diff --git a/src/conky.h b/src/conky.h index 5261e19e..ddaca569 100644 --- a/src/conky.h +++ b/src/conky.h @@ -469,7 +469,9 @@ void prepare_update(void); void update_uptime(void); void update_meminfo(void); void update_net_stats(void); +#if 0 void update_wifi_stats(void); +#endif void update_cpu_usage(void); void update_total_processes(void); void update_running_processes(void); diff --git a/src/freebsd.c b/src/freebsd.c index 48174091..ac426b86 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -595,6 +595,7 @@ update_top() proc_find_top(info.cpu, info.memu); } +#if 0 void update_wifi_stats() { @@ -651,6 +652,8 @@ cleanup: close(s); } } +#endif + void update_diskio() {