projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix syntax error introduced by previous
[collectd.git]
/
src
/
disk.c
diff --git
a/src/disk.c
b/src/disk.c
index
962b7c3
..
206862b
100644
(file)
--- a/
src/disk.c
+++ b/
src/disk.c
@@
-126,7
+126,7
@@
static struct gmesh geom_tree;
#define MAX_NUMDISK 1024
extern kstat_ctl_t *kc;
static kstat_t *ksp[MAX_NUMDISK];
#define MAX_NUMDISK 1024
extern kstat_ctl_t *kc;
static kstat_t *ksp[MAX_NUMDISK];
-static int numdisk
= 0
;
+static int numdisk;
/* #endif HAVE_LIBKSTAT */
#elif defined(HAVE_LIBSTATGRAB)
/* #endif HAVE_LIBKSTAT */
#elif defined(HAVE_LIBSTATGRAB)
@@
-145,7
+145,7
@@
static int pnumdisk;
#if HAVE_LIBUDEV_H
#include <libudev.h>
#if HAVE_LIBUDEV_H
#include <libudev.h>
-static char *conf_udev_name_attr
= NULL
;
+static char *conf_udev_name_attr;
static struct udev *handle_udev;
#endif
static struct udev *handle_udev;
#endif
@@
-153,7
+153,7
@@
static const char *config_keys[] = {"Disk", "UseBSDName", "IgnoreSelected",
"UdevNameAttr"};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
"UdevNameAttr"};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
-static ignorelist_t *ignorelist
= NULL
;
+static ignorelist_t *ignorelist;
static int disk_config(const char *key, const char *value) {
if (ignorelist == NULL)
static int disk_config(const char *key, const char *value) {
if (ignorelist == NULL)