summaryrefslogtreecommitdiffstats
path: root/arithmetic
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-09-13 15:27:25 +0000
committerhubertf <hubertf@NetBSD.org>1998-09-13 15:27:25 +0000
commita2515e35506e73e8f6422799dea7f4834cd0f558 (patch)
tree04fd3cbcf147e619b8b2e6291fffb4c4a5b8a591 /arithmetic
parent6d7ed08d8c880aa89994f5978dff0cef8d6aaeb3 (diff)
downloadbsdgames-darwin-a2515e35506e73e8f6422799dea7f4834cd0f558.tar.gz
bsdgames-darwin-a2515e35506e73e8f6422799dea7f4834cd0f558.tar.zst
bsdgames-darwin-a2515e35506e73e8f6422799dea7f4834cd0f558.zip
mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
Diffstat (limited to 'arithmetic')
-rw-r--r--arithmetic/arithmetic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c
index 3150717e..2042095e 100644
--- a/arithmetic/arithmetic.c
+++ b/arithmetic/arithmetic.c
@@ -1,4 +1,4 @@
-/* $NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $ */
+/* $NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -46,7 +46,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.10 1998/02/03 05:33:32 perry Exp $");
+__RCSID("$NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $");
#endif
#endif /* not lint */
@@ -89,13 +89,13 @@ __RCSID("$NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $");
#include <unistd.h>
int getrandom __P((int, int, int));
-void intr __P((int));
+void intr __P((int)) __attribute__((__noreturn__));
int main __P((int, char *[]));
int opnum __P((int));
void penalise __P((int, int, int));
int problem __P((void));
void showstats __P((void));
-void usage __P((void));
+void usage __P((void)) __attribute__((__noreturn__));
char keylist[] = "+-x/";
char defaultkeys[] = "+-";