load plugin: Made the data source variable `static'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 6 Dec 2006 20:50:21 +0000 (21:50 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 6 Dec 2006 20:50:21 +0000 (21:50 +0100)
Also removed the `filename' member from `data_set_t' because it's not used.

src/load.c
src/plugin.h

index e8dabaa..bff629d 100644 (file)
 #endif
 #endif /* defined(HAVE_GETLOADAVG) */
 
-data_source_t dsrc[3] =
+static data_source_t dsrc[3] =
 {
        {"shortterm", DS_TYPE_GAUGE, 0.0, 100.0},
        {"midterm",   DS_TYPE_GAUGE, 0.0, 100.0},
        {"longterm",  DS_TYPE_GAUGE, 0.0, 100.0}
 };
 
-data_set_t ds =
+static data_set_t ds =
 {
        "load", 3, dsrc
 };
index 611fa57..af691c5 100644 (file)
@@ -66,7 +66,6 @@ struct data_set_s
        char           type[DATA_MAX_NAME_LEN];
        int            ds_num;
        data_source_t *ds;
-       char          *filename;
 };
 typedef struct data_set_s data_set_t;