Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/login - use __dead consistently.



details:   https://anonhg.NetBSD.org/src/rev/82434ed5a641
branches:  trunk
changeset: 779325:82434ed5a641
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 19 00:02:44 2012 +0000

description:
- use __dead consistently.
- more clang build.

diffstat:

 usr.bin/login/common.c |  8 ++++----
 usr.bin/login/common.h |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r bff5f49366b5 -r 82434ed5a641 usr.bin/login/common.c
--- a/usr.bin/login/common.c    Fri May 18 21:09:50 2012 +0000
+++ b/usr.bin/login/common.c    Sat May 19 00:02:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.5 2012/05/10 01:25:24 christos Exp $      */
+/*     $NetBSD: common.c,v 1.6 2012/05/19 00:02:44 christos Exp $      */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: common.c,v 1.5 2012/05/10 01:25:24 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.6 2012/05/19 00:02:44 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -155,7 +155,7 @@
 }
 
 /* ARGSUSED */
-void
+void __dead
 timedout(int signo)
 {
 
@@ -372,7 +372,7 @@
        return (ttyid && (t = getttynam(ttyid)) ? t->ty_type : NULL);
 }
 
-void
+void __dead
 sleepexit(int eval)
 {
 
diff -r bff5f49366b5 -r 82434ed5a641 usr.bin/login/common.h
--- a/usr.bin/login/common.h    Fri May 18 21:09:50 2012 +0000
+++ b/usr.bin/login/common.h    Sat May 19 00:02:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.h,v 1.3 2012/04/29 01:26:56 wiz Exp $   */
+/*     $NetBSD: common.h,v 1.4 2012/05/19 00:02:44 christos Exp $      */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -37,10 +37,10 @@
 char   *getloginname(void);
 void    motd(const char *);
 int     rootterm(char *);
-void    sigint(int) __attribute__((__noreturn__));
-void    sleepexit(int) __attribute__((__noreturn__));
+void    __dead sigint(int);
+void    __dead sleepexit(int);
 const   char *stypeof(const char *);
-void    timedout(int) __attribute__((__noreturn__));
+void    __dead timedout(int);
 void    decode_ss(const char *);
 
 extern u_int   timeout;



Home | Main Index | Thread Index | Old Index