summaryrefslogtreecommitdiffstats
path: root/tetris
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 /tetris
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 'tetris')
-rw-r--r--tetris/tetris.c6
-rw-r--r--tetris/tetris.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c
index 0b08ddab..b2f0006c 100644
--- a/tetris/tetris.c
+++ b/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.4 1998/08/10 02:25:45 perry Exp $ */
+/* $NetBSD: tetris.c,v 1.5 1998/09/13 15:27:30 hubertf Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -64,8 +64,8 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
static void elide __P((void));
static void setup_board __P((void));
int main __P((int, char **));
- void onintr __P((int));
- void usage __P((void));
+ void onintr __P((int)) __attribute__((__noreturn__));
+ void usage __P((void)) __attribute__((__noreturn__));
/*
* Set up the initial board. The bottom display row is completely set,
diff --git a/tetris/tetris.h b/tetris/tetris.h
index 90e9c5d5..0aa41056 100644
--- a/tetris/tetris.h
+++ b/tetris/tetris.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.h,v 1.2 1995/04/22 07:42:48 cgd Exp $ */
+/* $NetBSD: tetris.h,v 1.3 1998/09/13 15:27:30 hubertf Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -168,4 +168,4 @@ char key_msg[100];
int fits_in __P((struct shape *, int));
void place __P((struct shape *, int, int));
-void stop __P((char *));
+void stop __P((char *)) __attribute__((__noreturn__));