summaryrefslogtreecommitdiff
path: root/src/shared/dropin.h
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-07 21:40:00 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-07 22:20:56 +0200
commitf5a4b0d3534bb13ef734a857647ab04be236c6f3 (patch)
treedbcad9335342acb363f418ee7ac6384f7fdaa127 /src/shared/dropin.h
parent36a259d22c450fbf3f696df0161db50275a98667 (diff)
dropin: add format attribute and fix a wrong caller
Diffstat (limited to 'src/shared/dropin.h')
-rw-r--r--src/shared/dropin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/dropin.h b/src/shared/dropin.h
index 27a2b2953f..9c9742d0e4 100644
--- a/src/shared/dropin.h
+++ b/src/shared/dropin.h
@@ -21,6 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include "macro.h"
+
int drop_in_file(const char *dir, const char *unit, unsigned level,
const char *name, char **_p, char **_q);
@@ -28,4 +30,4 @@ int write_drop_in(const char *dir, const char *unit, unsigned level,
const char *name, const char *data);
int write_drop_in_format(const char *dir, const char *unit, unsigned level,
- const char *name, const char *format, ...);
+ const char *name, const char *format, ...) _printf_(5, 6);