projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d90643
)
collectdmon: define PREFIX and LOCALSTATEDIR
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:34:37 +0000
(16:34 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:34:37 +0000
(16:34 +0200)
Not an issue in practice, but this helps when running the code through
lint.
src/collectdmon.c
patch
|
blob
|
history
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
13304f2
..
61daa58
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-55,6
+55,14
@@
#include <unistd.h>
+#ifndef PREFIX
+# define PREFIX "/opt/" PACKAGE_NAME
+#endif
+
+#ifndef LOCALSTATEDIR
+# define LOCALSTATEDIR PREFIX "/var"
+#endif
+
#ifndef COLLECTDMON_PIDFILE
# define COLLECTDMON_PIDFILE LOCALSTATEDIR"/run/collectdmon.pid"
#endif /* ! COLLECTDMON_PIDFILE */