From 5b76eed8435d83619f278cc1584ca5751e2804f6 Mon Sep 17 00:00:00 2001 From: perry Date: Sat, 15 Dec 2007 19:44:37 +0000 Subject: convert __attribute__s to applicable cdefs.h macros --- arithmetic/arithmetic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'arithmetic/arithmetic.c') 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 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); -- cgit v1.2.3-56-ge451