Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include err.h: dead once is dead enough



details:   https://anonhg.NetBSD.org/src/rev/7e19a6e42191
branches:  trunk
changeset: 359436:7e19a6e42191
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jan 06 00:16:47 2022 +0000

description:
err.h: dead once is dead enough

Per joerg's advice keep the __dead in front position as it is where
_Noreturn would go.

diffstat:

 include/err.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (33 lines):

diff -r cfb7683c691c -r 7e19a6e42191 include/err.h
--- a/include/err.h     Wed Jan 05 20:21:29 2022 +0000
+++ b/include/err.h     Thu Jan 06 00:16:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.h,v 1.17 2014/01/16 17:22:06 christos Exp $        */
+/*     $NetBSD: err.h,v 1.18 2022/01/06 00:16:47 uwe Exp $     */
 
 /*-
  * Copyright (c) 1993
@@ -39,17 +39,17 @@
 
 __BEGIN_DECLS
 __dead void    err(int, const char *, ...)
-                    __printflike(2, 3) __dead;
+                    __printflike(2, 3);
 __dead void    verr(int, const char *, va_list)
-                   __printflike(2, 0) __dead;
+                   __printflike(2, 0);
 __dead void    errx(int, const char *, ...)
-                    __printflike(2, 3) __dead;
+                    __printflike(2, 3);
 __dead void    verrx(int, const char *, va_list)
-                   __printflike(2, 0) __dead;
+                   __printflike(2, 0);
 __dead void    errc(int, int, const char *, ...)
-                    __printflike(3, 4) __dead;
+                    __printflike(3, 4);
 __dead void    verrc(int, int, const char *, va_list)
-                   __printflike(3, 0) __dead;
+                   __printflike(3, 0);
 void           warn(const char *, ...)
                    __printflike(1, 2);
 void           vwarn(const char *, va_list)



Home | Main Index | Thread Index | Old Index