+2008-01-02 Guillem Jover <guillem@debian.org>
+
+ * lib/dpkg.h (NONRETURNPRINTFFORMAT): Remove macro.
+ (ohshit): Use NONRETURNING and PRINTFFORMAT instead of
+ NONRETURNPRINTFFORMAT.
+ (ohshite): Likewise.
+ (badusage): Likewise.
+ * utils/start-stop-daemon.c (NONRETURNPRINTFFORMAT): Remove macro.
+ (fatal): Use NONRETURNING and PRINTFFORMAT instead of
+ NONRETURNPRINTFFORMAT.
+
2008-01-01 Guillem Jover <guillem@debian.org>
* scripts/dpkg-buildpackage.pl: Use Dpkg::Compression. Use $comp_regex
# define PRINTFFORMAT(si, tc) __attribute__((format(printf,si,tc)))
# define NONRETURNING __attribute__((noreturn))
# define UNUSED __attribute__((unused))
-# define NONRETURNPRINTFFORMAT(si, tc) __attribute__((format(printf,si,tc),noreturn))
#else
# define CONSTANT
# define PRINTFFORMAT(si, tc)
# define NONRETURNING
# define UNUSED
-# define NONRETURNPRINTFFORMAT(si, tc)
#endif
/*** from startup.c ***/
#define internerr(s) do_internerr(s,__LINE__,__FILE__)
struct varbuf;
-void ohshit(const char *fmt, ...) NONRETURNPRINTFFORMAT(1,2);
+void ohshit(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
void ohshitv(const char *fmt, va_list al) NONRETURNING;
-void ohshite(const char *fmt, ...) NONRETURNPRINTFFORMAT(1,2);
+void ohshite(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
void ohshitvb(struct varbuf*) NONRETURNING;
-void badusage(const char *fmt, ...) NONRETURNPRINTFFORMAT(1,2);
+void badusage(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
void werr(const char *what) NONRETURNING;
void warningf(const char *fmt, ...);
# define PRINTFFORMAT(si, tc) __attribute__((format(printf,si,tc)))
# define NONRETURNING __attribute__((noreturn))
# define UNUSED __attribute__((unused))
-# define NONRETURNPRINTFFORMAT(si, tc) __attribute__((format(printf,si,tc),noreturn))
#else
# define CONSTANT
# define PRINTFFORMAT(si, tc)
# define NONRETURNING
# define UNUSED
-# define NONRETURNPRINTFFORMAT(si, tc)
#endif
static int testmode = 0;
#ifdef __GNUC__
static void fatal(const char *format, ...)
- NONRETURNPRINTFFORMAT(1, 2);
+ NONRETURNING PRINTFFORMAT(1, 2);
static void badusage(const char *msg)
NONRETURNING;
#else