summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d90643)
raw | patch | inline | side by side (parent: 4d90643)
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.
lint.
src/collectdmon.c | patch | blob | history |
diff --git a/src/collectdmon.c b/src/collectdmon.c
index 13304f2a18075d2333c98c7daae66b64db8e766f..61daa58c6ba1f07a4fbfa3716125b3fcb0be73b2 100644 (file)
--- a/src/collectdmon.c
+++ b/src/collectdmon.c
#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 */