summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3be4a68)
raw | patch | inline | side by side (parent: 3be4a68)
author | Florian Forster <sifnfors@faui06.informatik.uni-erlangen.de> | |
Mon, 15 Jan 2007 12:49:15 +0000 (13:49 +0100) | ||
committer | Florian Forster <sifnfors@faui06.informatik.uni-erlangen.de> | |
Mon, 15 Jan 2007 12:49:15 +0000 (13:49 +0100) |
src/load.c | patch | blob | history | |
src/network.c | patch | blob | history | |
src/nfs.c | patch | blob | history | |
src/plugin.h | patch | blob | history | |
src/traffic.c | patch | blob | history |
diff --git a/src/load.c b/src/load.c
index e715dcf951bdc393a96ab1ebc471449659943a46..2cc761b6557fc782e08f0da1878d02970b75446a 100644 (file)
--- a/src/load.c
+++ b/src/load.c
static void load_submit (double snum, double mnum, double lnum)
{
value_t values[3];
- value_list_t vl;
+ value_list_t vl = VALUE_LIST_INIT;
values[0].gauge = snum;
values[1].gauge = mnum;
diff --git a/src/network.c b/src/network.c
index 5d5888046c79d8ea06cdb178836c0c9c32784303..33f581dc0fb5ff889049ecb6052a6685187b1d5e 100644 (file)
--- a/src/network.c
+++ b/src/network.c
part_header_t *header;
int status;
- value_list_t vl;
+ value_list_t vl = VALUE_LIST_INIT;
char type[DATA_MAX_NAME_LEN];
DBG ("buffer = %p; buffer_len = %i;", buffer, buffer_len);
diff --git a/src/nfs.c b/src/nfs.c
index efe1e0243c55bd540aca566365be4fa4eef9247e..d6e8516812721898633d2903321426e79516eadc 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
unsigned long long *val, const char **names, int len)
{
value_t values[1];
- value_list_t vl;
+ value_list_t vl = VALUE_LIST_INIT;
int i;
vl.values = values;
diff --git a/src/plugin.h b/src/plugin.h
index 8381871892f56a198d35be014b41cc22f8ab3d06..3b94ff71a4f6ea3e398fc5249a39bb945c5da41d 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
};
typedef struct value_list_s value_list_t;
+#define VALUE_LIST_INIT { NULL, 0, 0, "localhost", "", "", "" }
+
struct data_source_s
{
char name[DATA_MAX_NAME_LEN];
diff --git a/src/traffic.c b/src/traffic.c
index 91b624ff6da1ce8e85ec478f42c85070dc4ecd47..59b59e8347f1dea5725ad538c79a20db586445da 100644 (file)
--- a/src/traffic.c
+++ b/src/traffic.c
unsigned long long tx)
{
value_t values[2];
- value_list_t vl;
+ value_list_t vl = VALUE_LIST_INIT;
if (check_ignore_if (dev))
return;