summaryrefslogtreecommitdiffstats
path: root/backgammon
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-08-26 06:18:16 +0000
committerdholland <dholland@NetBSD.org>2011-08-26 06:18:16 +0000
commit9e7fd816e02e66962d482b02209f112e1d5789fc (patch)
treea17f6ea5c647e0ec62bfe7ecad4192e0335b121b /backgammon
parent9969175ad6caac230e2fee18f6f64f2be17a1fa6 (diff)
downloadbsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.tar.gz
bsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.tar.zst
bsdgames-darwin-9e7fd816e02e66962d482b02209f112e1d5789fc.zip
Use __dead and __printflike instead of __attribute__.
Diffstat (limited to 'backgammon')
-rw-r--r--backgammon/common_source/back.h6
-rw-r--r--backgammon/common_source/save.c6
-rw-r--r--backgammon/teachgammon/tutor.h6
3 files changed, 9 insertions, 9 deletions
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;