Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/login Add some noreturn attributes for clang.



details:   https://anonhg.NetBSD.org/src/rev/2e9f5cf79b45
branches:  trunk
changeset: 779049:2e9f5cf79b45
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Apr 29 01:26:56 2012 +0000

description:
Add some noreturn attributes for clang.

diffstat:

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

diffs (50 lines):

diff -r d0ab02c6e665 -r 2e9f5cf79b45 usr.bin/login/common.h
--- a/usr.bin/login/common.h    Sat Apr 28 23:03:39 2012 +0000
+++ b/usr.bin/login/common.h    Sun Apr 29 01:26:56 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.h,v 1.2 2012/04/22 23:26:19 christos Exp $      */
+/*     $NetBSD: common.h,v 1.3 2012/04/29 01:26:56 wiz 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);
-void    sleepexit(int);
+void    sigint(int) __attribute__((__noreturn__));
+void    sleepexit(int) __attribute__((__noreturn__));
 const   char *stypeof(const char *);
-void    timedout(int);
+void    timedout(int) __attribute__((__noreturn__));
 void    decode_ss(const char *);
 
 extern u_int   timeout;
diff -r d0ab02c6e665 -r 2e9f5cf79b45 usr.bin/login/login.c
--- a/usr.bin/login/login.c     Sat Apr 28 23:03:39 2012 +0000
+++ b/usr.bin/login/login.c     Sun Apr 29 01:26:56 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: login.c,v 1.102 2012/04/23 21:09:27 christos Exp $     */
+/*     $NetBSD: login.c,v 1.103 2012/04/29 01:26:56 wiz Exp $  */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)login.c    8.4 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: login.c,v 1.102 2012/04/23 21:09:27 christos Exp $");
+__RCSID("$NetBSD: login.c,v 1.103 2012/04/29 01:26:56 wiz Exp $");
 #endif /* not lint */
 
 /*
@@ -109,7 +109,7 @@
 #if defined(KERBEROS5)
 static void     dofork(void);
 #endif
-static void     usage(void);
+static void     usage(void) __attribute__((__noreturn__));
 
 #define        TTYGRPNAME      "tty"           /* name of group to own ttys */
 



Home | Main Index | Thread Index | Old Index