Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/isdn/isdntel Use __dead and __printflike
details: https://anonhg.NetBSD.org/src/rev/80451fc56963
branches: trunk
changeset: 769096:80451fc56963
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Aug 31 13:30:44 2011 +0000
description:
Use __dead and __printflike
diffstat:
usr.sbin/isdn/isdntel/defs.h | 10 ++++------
usr.sbin/isdn/isdntel/main.c | 4 ++--
2 files changed, 6 insertions(+), 8 deletions(-)
diffs (48 lines):
diff -r a59da18eed78 -r 80451fc56963 usr.sbin/isdn/isdntel/defs.h
--- a/usr.sbin/isdn/isdntel/defs.h Wed Aug 31 13:25:49 2011 +0000
+++ b/usr.sbin/isdn/isdntel/defs.h Wed Aug 31 13:30:44 2011 +0000
@@ -27,7 +27,7 @@
* isdntel - isdn4bsd telephone answering support
* ==============================================
*
- * $Id: defs.h,v 1.3 2009/04/16 05:56:33 lukem Exp $
+ * $Id: defs.h,v 1.4 2011/08/31 13:30:44 joerg Exp $
*
* $FreeBSD$
*
@@ -148,11 +148,9 @@
extern int fill_list( void );
extern char *get_alias( char *number );
extern int main ( int argc, char **argv );
-extern void do_quit ( int exitval );
-extern void fatal ( const char *fmt, ... )
- __attribute__((__noreturn__, __format__(__printf__, 1, 2)));
-extern void error ( const char *fmt, ... )
- __attribute__((__format__(__printf__, 1, 2)));
+extern void do_quit ( int exitval ) __dead;
+extern void fatal ( const char *fmt, ... ) __dead __printflike(1, 2);
+extern void error ( const char *fmt, ... ) __printflike(1, 2);
extern void play ( struct onefile * );
extern void delete ( struct onefile * );
extern void reread( void );
diff -r a59da18eed78 -r 80451fc56963 usr.sbin/isdn/isdntel/main.c
--- a/usr.sbin/isdn/isdntel/main.c Wed Aug 31 13:25:49 2011 +0000
+++ b/usr.sbin/isdn/isdntel/main.c Wed Aug 31 13:30:44 2011 +0000
@@ -27,7 +27,7 @@
* isdntel - isdn4bsd telephone answering machine support
* ======================================================
*
- * $Id: main.c,v 1.7 2009/04/16 05:56:33 lukem Exp $
+ * $Id: main.c,v 1.8 2011/08/31 13:30:44 joerg Exp $
*
* $FreeBSD$
*
@@ -40,7 +40,7 @@
#include "defs.h"
#include "alias.h"
-static void usage( void );
+__dead static void usage( void );
static int top_dis = 0;
static int bot_dis = 0;
Home |
Main Index |
Thread Index |
Old Index