File at-3.1.8-formatbugs.patch of Package at

--- atd.c
+++ atd.c
@@ -293,7 +293,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
+++ daemon.h
@@ -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;
--- panic.h
+++ panic.h
@@ -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))
openSUSE Build Service is sponsored by