42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
--- panic.h.xx 2005-02-05 10:12:44.870410055 +0100
|
|
+++ panic.h 2005-02-05 10:18:18.327308607 +0100
|
|
@@ -26,7 +26,9 @@
|
|
#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))
|
|
--- atd.c.xx 2005-02-05 10:19:11.235056781 +0100
|
|
+++ atd.c 2005-02-05 10:19:20.048518592 +0100
|
|
@@ -330,7 +330,7 @@
|
|
|
|
if (buf.st_nlink > 2) {
|
|
perr("Someboy is trying to run a linked script for job %8lu (%.500s)",
|
|
- filename);
|
|
+ jobno, filename);
|
|
}
|
|
if ((fflags = fcntl(fd_in, F_GETFD)) < 0)
|
|
perr("Error in fcntl");
|
|
--- daemon.h.xx 2005-02-05 10:20:28.592475730 +0100
|
|
+++ daemon.h 2005-02-05 10:20:19.283988448 +0100
|
|
@@ -5,12 +5,12 @@
|
|
#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;
|