Fixed all warnings.

This commit is contained in:
Martin Baulig
1999-07-30 21:03:22 +00:00
parent 2814206ffa
commit 9152479981
13 changed files with 20 additions and 22 deletions

View File

@@ -88,8 +88,6 @@ glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
if (skfd) {
struct ifreq ifr;
struct sockaddr_in addr;
char *address;
unsigned flags;
strcpy (ifr.ifr_name, interface);

View File

@@ -31,6 +31,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
#include <glib.h>
static const unsigned long _glibtop_sysdeps_ppp =

View File

@@ -187,7 +187,7 @@ glibtop_get_proc_data_netload_s (glibtop *server,
int name [2] = { CTL_LIBGTOP, LIBGTOP_NETLOAD };
size_t size = sizeof (libgtop_netload_t);
if (sysctl (name, 2, netload, &size, device, strlen (device)+1)) {
if (sysctl (name, 2, netload, &size, (char *) device, strlen (device)+1)) {
glibtop_warn_io_r (server, "sysctl (libgtop/netload)");
return -1;
}

View File

@@ -25,6 +25,8 @@
#include <glibtop/cpu.h>
#include <glibtop/sysinfo.h>
#include <ctype.h>
static const unsigned long _glibtop_sysdeps_sysinfo =
(1L << GLIBTOP_SYSINFO_CPUINFO);