Code

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 e8dabaa19e7232d9ac6fc9ad87ba988b8f195987..bff629dcb06cb9ad6a1c2255c02d2fff65a9fd0a 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 611fa572507db6a4222095c62f04b00ab17569cd..af691c5dcc172bf620cc48d4bc1fd0bffeeb4b93 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;