projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/plugin.[ch]: Store the hostname in a global variable to minimize calls to `gethos...
[collectd.git]
/
src
/
plugin.h
diff --git
a/src/plugin.h
b/src/plugin.h
index
3b94ff7
..
107078e
100644
(file)
--- a/
src/plugin.h
+++ b/
src/plugin.h
@@
-77,6
+77,8
@@
typedef struct complain_s
unsigned int delay; /* how many more iterations we still need to wait */
} complain_t;
+extern char hostname[DATA_MAX_NAME_LEN];
+
/*
* NAME
* plugin_set_dir