File wavemon-fixes.diff of Package wavemon

--- wavemon-0.4.0b/Makefile.in
+++ wavemon-0.4.0b/Makefile.in
@@ -71,8 +71,8 @@
 
 install: wavemon wavemon.1 wavemonrc.5
 	./install-sh -m 755 wavemon $(bindir)
-	./install-sh -m 755 wavemon.1 $(mandir)/man1
-	./install-sh -m 755 wavemonrc.5 $(mandir)/man5
+	./install-sh -m 644 wavemon.1 $(mandir)/man1
+	./install-sh -m 644 wavemonrc.5 $(mandir)/man5
 
 uninstall:
 	rm -f $(bindir)/wavemon
--- wavemon-0.4.0b/conf.c
+++ wavemon-0.4.0b/conf.c
@@ -411,6 +411,7 @@
 									break;
 					case t_sep: 	/* gcc -Wall sucks */
 					case t_func:
+						break;
 				}
 			}
 		}
@@ -481,7 +482,7 @@
 							break;
 				case t_listval: sprintf(rv, "%s", (char *)ci->v);
 				case t_sep: break;
-				case t_func:
+				case t_func: break;
 			}
 			
 			add = 1;
--- wavemon-0.4.0b/conf_scr.c
+++ wavemon-0.4.0b/conf_scr.c
@@ -64,6 +64,7 @@
 							break;
 			case t_sep:		/* gcc -Wall sucks */
 			case t_func:
+				break;
 		}
 
 		if (!item->unit) {
@@ -137,6 +138,7 @@
 						break;
 		case t_sep:		/* gcc -Wall sucks */
 		case t_func:
+			break;
 	}
 }	
 
--- wavemon-0.4.0b/error.c
+++ wavemon-0.4.0b/error.c
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <ncurses.h>
+#include <stdlib.h>
 #include "conf.h"
 
 void fatal_error(char *format, ...)
--- wavemon-0.4.0b/llist.c
+++ wavemon-0.4.0b/llist.c
@@ -352,7 +352,7 @@
 					*((int *)l->e) = va_arg(*ap, int);
 					break;
 		case 's':	l->e = (void *)malloc(sizeof(char *));
-					(char *)l->e = strdup(va_arg(*ap, char *));
+					l->e = strdup(va_arg(*ap, char *));
 					break;
 		case 'f':	l->e = (void *)malloc(sizeof(double));
 					*((double *)l->e) = va_arg(*ap, double);
--- wavemon-0.4.0b/net_if.c
+++ wavemon-0.4.0b/net_if.c
@@ -24,6 +24,7 @@
 #include <sys/ioctl.h>
 #include <net/if.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include "net_if.h"
 
--- wavemon-0.4.0b/wavemon.c
+++ wavemon-0.4.0b/wavemon.c
@@ -20,6 +20,7 @@
 
 #include <sys/time.h>
 #include <ncurses.h>
+#include <stdlib.h>
 
 #include "conf.h"
 #include "ui.h"
openSUSE Build Service is sponsored by