2013-06-11 13:42:01 +00:00
|
|
|
Index: daemon.h
|
|
|
|
===================================================================
|
2010-09-28 20:34:15 +00:00
|
|
|
--- daemon.h.orig
|
2009-01-08 13:50:40 +00:00
|
|
|
+++ daemon.h
|
2013-06-11 13:42:01 +00:00
|
|
|
@@ -3,15 +3,15 @@ void daemon_cleanup(void);
|
|
|
|
|
|
|
|
void
|
2006-12-18 17:51:26 +00:00
|
|
|
#ifdef HAVE_ATTRIBUTE_NORETURN
|
|
|
|
__attribute__((noreturn))
|
|
|
|
#endif
|
|
|
|
-pabort (const char *fmt, ...);
|
|
|
|
+pabort (const char *fmt, ...) __attribute__((__format__(printf,1,2)));
|
|
|
|
|
|
|
|
void
|
|
|
|
#ifdef HAVE_ATTRIBUTE_NORETURN
|
|
|
|
__attribute__((noreturn))
|
|
|
|
#endif
|
|
|
|
-perr (const char *fmt, ...);
|
|
|
|
+perr (const char *fmt, ...) __attribute__((__format__(printf,1,2)));
|
|
|
|
|
|
|
|
extern int daemon_debug;
|
2013-06-11 13:42:01 +00:00
|
|
|
extern int daemon_foreground;
|
|
|
|
Index: panic.h
|
|
|
|
===================================================================
|
2010-09-28 20:34:15 +00:00
|
|
|
--- panic.h.orig
|
2009-01-08 13:50:40 +00:00
|
|
|
+++ panic.h
|
2013-06-11 13:42:01 +00:00
|
|
|
@@ -24,11 +24,13 @@ __attribute__((noreturn))
|
|
|
|
panic(char *a);
|
|
|
|
void
|
2009-01-08 13:50:40 +00:00
|
|
|
#ifdef HAVE_ATTRIBUTE_NORETURN
|
|
|
|
__attribute__((noreturn))
|
|
|
|
#endif
|
|
|
|
-perr(const char *a, ...);
|
|
|
|
+perr(const char *a, ...)
|
|
|
|
+__attribute__((__format__(printf,1,2)))
|
|
|
|
+;
|
|
|
|
void
|
|
|
|
#ifdef HAVE_ATTRIBUTE_NORETURN
|
|
|
|
__attribute__((noreturn))
|
2013-06-11 13:42:01 +00:00
|
|
|
#endif
|
|
|
|
usage(void);
|