summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e36aa7)
raw | patch | inline | side by side (parent: 8e36aa7)
author | Cosmin Ioiart <cioiart+dev@gmail.com> | |
Tue, 13 Mar 2012 07:38:16 +0000 (08:38 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 18 Mar 2012 09:34:09 +0000 (10:34 +0100) |
Fixed compilation errors for the linux platform
src/nfs.c | patch | blob | history |
diff --git a/src/nfs.c b/src/nfs.c
index 9293ed536034345f0b480bdf9f958c100abc1b52..9efe326c748a22efe9e7b574c0dbdc8e8cc3e096 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
};
static int nfs3_procedures_names_num = 22;
+#if HAVE_LIBKSTAT
static const char *nfs4_procedures_names[] =
{
"null",
NULL
};
static int nfs4_procedures_names_num = 39;
+#endif
#if HAVE_LIBKSTAT
extern kstat_ctl_t *kc;
#if HAVE_LIBKSTAT
static void nfs2_procedures_submit(unsigned long long *val,
- const char *plugin_instance, char *nfs_ver, int len)
+ const char *plugin_instance, char *nfs_ver, int len)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
#endif
static void nfs_procedures_submit (const char *plugin_instance,
- unsigned long long *val, const char **names, int len)
+ unsigned long long *val, const char **names, int len)
{
value_t values[1];
sizeof (vl.plugin_instance));
sstrncpy(vl.type, "nfs_procedure", sizeof (vl.type));
- for (i = 0; (val[i] != NULL) && (i < len); i++) {
+ for (i = 0; (i < len); i++) {
values[0].derive = val[i];
sstrncpy(vl.type_instance, names[i],
sizeof (vl.type_instance));