summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index c15efb5..e2c398c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -23,11 +23,13 @@
#ifndef _COMMON_H
#define _COMMON_H
-void die(const char *msg, ...) __attribute((noreturn));
+void die(const char *msg, ...)
+ __attribute((noreturn, format(printf, 1, 2)));
/* Displays a prinf-style message and terminates the program. */
-void pdie(const char *msg, ...) __attribute((noreturn));
+void pdie(const char *msg, ...)
+ __attribute((noreturn, format(printf, 1, 2)));
/* Like die, but appends an error message according to the state of errno. */