From 9e7fd816e02e66962d482b02209f112e1d5789fc Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 26 Aug 2011 06:18:16 +0000 Subject: Use __dead and __printflike instead of __attribute__. --- backgammon/common_source/back.h | 6 +++--- backgammon/common_source/save.c | 6 +++--- backgammon/teachgammon/tutor.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'backgammon') diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h index ed56e81c..815a5ec2 100644 --- a/backgammon/common_source/back.h +++ b/backgammon/common_source/back.h @@ -1,4 +1,4 @@ -/* $NetBSD: back.h,v 1.17 2010/03/22 05:10:19 mrg Exp $ */ +/* $NetBSD: back.h,v 1.18 2011/08/26 06:18:16 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -139,14 +139,14 @@ void clend(void); void cline(void); int count(void); void curmove(int, int); -void errexit(const char *) __attribute__((__noreturn__)); +void errexit(const char *) __dead; void fancyc(int); void fboard(void); void fixtty(struct termios *); void getarg(char ***); int getcaps(const char *); void getmove(void); -void getout(int) __attribute__((__noreturn__)); +void getout(int) __dead; void gwrite(void); void init(void); int main(int, char *[]); diff --git a/backgammon/common_source/save.c b/backgammon/common_source/save.c index 2e7f29c1..57e8a054 100644 --- a/backgammon/common_source/save.c +++ b/backgammon/common_source/save.c @@ -1,4 +1,4 @@ -/* $NetBSD: save.c,v 1.13 2009/08/12 05:17:57 dholland Exp $ */ +/* $NetBSD: save.c,v 1.14 2011/08/26 06:18:16 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: save.c,v 1.13 2009/08/12 05:17:57 dholland Exp $"); +__RCSID("$NetBSD: save.c,v 1.14 2011/08/26 06:18:16 dholland Exp $"); #endif #endif /* not lint */ @@ -53,7 +53,7 @@ static const char type[] = "'.\nType \"backgammon "; static const char rec[] = "\" to recover your game.\n\n"; static const char cantrec[] = "Can't recover file: "; -static void norec(const char *) __attribute__((__noreturn__)); +static void norec(const char *) __dead; void save(int n) diff --git a/backgammon/teachgammon/tutor.h b/backgammon/teachgammon/tutor.h index ca5d2d1b..26e55e1f 100644 --- a/backgammon/teachgammon/tutor.h +++ b/backgammon/teachgammon/tutor.h @@ -1,4 +1,4 @@ -/* $NetBSD: tutor.h,v 1.9 2009/08/12 05:17:57 dholland Exp $ */ +/* $NetBSD: tutor.h,v 1.10 2011/08/26 06:18:16 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -62,5 +62,5 @@ extern const char *const stragy[]; extern const struct situatn test[]; -void leave(void) __attribute__((__noreturn__)); -void tutor(void) __attribute__((__noreturn__)); +void leave(void) __dead; +void tutor(void) __dead; -- cgit v1.2.3-56-ge451