]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove _dead macro and swap printflike position.
authorRoy Marples <roy@marples.name>
Fri, 23 Oct 2015 20:48:20 +0000 (20:48 +0000)
committerRoy Marples <roy@marples.name>
Fri, 23 Oct 2015 20:48:20 +0000 (20:48 +0000)
common.h

index 7cef0cf2a256da5a469c93a1b5f3a39972074099..606034199ce29a2f1f26af99cc992eccc6fcf6dd 100644 (file)
--- a/common.h
+++ b/common.h
 #endif
 
 #if __GNUC__ > 2 || defined(__INTEL_COMPILER)
-# ifndef __dead
-#  define __dead __attribute__((__noreturn__))
-# endif
 # ifndef __packed
 #  define __packed   __attribute__((__packed__))
 # endif
 #  define __unused   __attribute__((__unused__))
 # endif
 #else
-# ifndef __dead
-#  define __dead
-# endif
 # ifndef __packed
 #  define __packed
 # endif
@@ -172,7 +166,7 @@ int get_monotonic(struct timespec *);
 #if USE_LOGFILE
 void logger_open(struct dhcpcd_ctx *);
 #define logger_mask(ctx, lvl) setlogmask((lvl))
-__printflike(3, 4) void logger(struct dhcpcd_ctx *, int, const char *, ...);
+void logger(struct dhcpcd_ctx *, int, const char *, ...) __printflike(3, 4);
 void logger_close(struct dhcpcd_ctx *);
 #else
 #define logger_open(ctx) openlog(PACKAGE, LOG_PERROR | LOG_PID, LOG_DAEMON)