diff options
author | adev <adev@linuxmail.org> | 2010-05-11 22:55:04 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 22:55:04 +0200 |
commit | c86285a9d41edd90398b6f89901e66316636004e (patch) | |
tree | e0b7efdfa46a049c1a6c5cedf63c02742618704e /network/wavemon/patches | |
parent | f272bb68d41a4ecfba9fabd4b473b400833367f7 (diff) | |
download | slackbuilds-c86285a9d41edd90398b6f89901e66316636004e.tar.gz |
network/wavemon: Added to 12.1 repository
Diffstat (limited to 'network/wavemon/patches')
-rw-r--r-- | network/wavemon/patches/wavemon-gcc34.patch | 51 | ||||
-rw-r--r-- | network/wavemon/patches/wavemon-gcc4.patch | 12 | ||||
-rw-r--r-- | network/wavemon/patches/wavemon-header.patch | 11 |
3 files changed, 74 insertions, 0 deletions
diff --git a/network/wavemon/patches/wavemon-gcc34.patch b/network/wavemon/patches/wavemon-gcc34.patch new file mode 100644 index 0000000000..c1bb24489c --- /dev/null +++ b/network/wavemon/patches/wavemon-gcc34.patch @@ -0,0 +1,51 @@ +--- conf.c.orig 2008-06-12 00:34:23.000000000 -0400 ++++ conf.c 2008-06-12 00:41:27.000000000 -0400 +@@ -410,7 +410,7 @@ + } + break; + case t_sep: /* gcc -Wall sucks */ +- case t_func: ++ case t_func: break; + } + } + } +@@ -481,7 +481,7 @@ + break; + case t_listval: sprintf(rv, "%s", (char *)ci->v); + case t_sep: break; +- case t_func: ++ case t_func: break; + } + + add = 1; +--- conf_scr.c.orig 2008-06-12 00:34:32.000000000 -0400 ++++ conf_scr.c 2008-06-12 00:42:17.000000000 -0400 +@@ -63,7 +63,7 @@ + case t_listval: strncpy(s, (char *)item->v, 32); + break; + case t_sep: /* gcc -Wall sucks */ +- case t_func: ++ case t_func: break; + } + + if (!item->unit) { +@@ -136,7 +136,7 @@ + strncpy((char *)item->v, ll_get(item->list, tmp), 32); + break; + case t_sep: /* gcc -Wall sucks */ +- case t_func: ++ case t_func: break; + } + } + +--- wavemon.c.orig 2008-06-11 22:09:07.000000000 -0400 ++++ wavemon.c 2008-06-11 22:09:15.000000000 -0400 +@@ -170,7 +170,7 @@ + + if (conf.dump == 1) { + dump_parameters(&conf); +- exit(); ++ exit(0); + } + + /* initialize the ncurses interface */ diff --git a/network/wavemon/patches/wavemon-gcc4.patch b/network/wavemon/patches/wavemon-gcc4.patch new file mode 100644 index 0000000000..dd1b6ce413 --- /dev/null +++ b/network/wavemon/patches/wavemon-gcc4.patch @@ -0,0 +1,12 @@ +--- llist.c.orig 2008-06-12 02:41:16.000000000 -0400 ++++ llist.c 2008-06-12 02:42:31.000000000 -0400 +@@ -351,8 +351,7 @@ + case 'd': l->e = (void *)malloc(sizeof(int)); + *((int *)l->e) = va_arg(*ap, int); + break; +- case 's': l->e = (void *)malloc(sizeof(char *)); +- (char *)l->e = strdup(va_arg(*ap, char *)); ++ case 's': l->e = (void*)strdup(va_arg(*ap, char *)); + break; + case 'f': l->e = (void *)malloc(sizeof(double)); + *((double *)l->e) = va_arg(*ap, double); diff --git a/network/wavemon/patches/wavemon-header.patch b/network/wavemon/patches/wavemon-header.patch new file mode 100644 index 0000000000..e1b48bfb53 --- /dev/null +++ b/network/wavemon/patches/wavemon-header.patch @@ -0,0 +1,11 @@ +--- iw_if.h.orig 2008-06-11 22:04:16.000000000 -0400 ++++ iw_if.h 2008-06-11 22:04:38.000000000 -0400 +@@ -19,6 +19,8 @@ + */ + + #include <netdb.h> ++#include <linux/types.h> ++#include <linux/if.h> + #include <linux/wireless.h> + + #define IW_STACKSIZE 1024 |