Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / plugin.c
index 1a029e4..852a693 100644 (file)
@@ -50,8 +50,6 @@ static llist_t *list_data_set;
 
 static char *plugindir = NULL;
 
-char hostname[DATA_MAX_NAME_LEN] = "localhost";
-
 /*
  * Static functions
  */
@@ -319,8 +317,6 @@ void plugin_init_all (void)
        llentry_t *le;
        int status;
 
-       gethostname (hostname, sizeof (hostname));
-
        if (list_init == NULL)
                return;