diff options
author | perry <perry@NetBSD.org> | 2007-12-15 19:44:37 +0000 |
---|---|---|
committer | perry <perry@NetBSD.org> | 2007-12-15 19:44:37 +0000 |
commit | 5b76eed8435d83619f278cc1584ca5751e2804f6 (patch) | |
tree | 95b484c27260594d4e5c7b00cdcfd394d46911b1 /arithmetic/arithmetic.c | |
parent | 1241b50c5ecd257030f9ddd40c9009a0a4c55ee8 (diff) | |
download | bsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.tar.gz bsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.tar.zst bsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.zip |
convert __attribute__s to applicable cdefs.h macros
Diffstat (limited to 'arithmetic/arithmetic.c')
-rw-r--r-- | arithmetic/arithmetic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index 8eff98ee..7e6c2229 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $ */ +/* $NetBSD: arithmetic.c,v 1.22 2007/12/15 19:44:38 perry Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.22 2007/12/15 19:44:38 perry Exp $"); #endif #endif /* not lint */ @@ -85,13 +85,13 @@ __RCSID("$NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $"); #include <unistd.h> int getrandom(int, int, int); -void intr(int) __attribute__((__noreturn__)); +void intr(int) __dead; int main(int, char *[]); int opnum(int); void penalise(int, int, int); int problem(void); void showstats(int); -void usage(void) __attribute__((__noreturn__)); +void usage(void) __dead; const char keylist[] = "+-x/"; const char defaultkeys[] = "+-"; @@ -159,7 +159,7 @@ main(argc, argv) /* Handle interrupt character. Print score and exit. */ void intr(dummy) - int dummy __attribute__((__unused__)); + int dummy __unused; { showstats(1); exit(0); |