Subject: bin/8082: [PATCH] Backgammon attributes
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm28@cam.ac.uk>
List: netbsd-bugs
Date: 07/26/1999 11:14:57
>Number:         8082
>Category:       bin
>Synopsis:       [PATCH] Backgammon attributes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 26 10:20:03 1999
>Last-Modified:
>Originator:     Joseph S. Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD anoncvs of 1999-07-25
>Environment:
[
System: Linux decomino 2.2.10 #1 Mon Jun 14 07:48:53 UTC 1999 i686 unknown
Architecture: i686
]
>Description:

This patch adds to backgammon(6) a couple of noreturn attributes I
missed in bin/6144.

>How-To-Repeat:

>Fix:

diff -ruN backgammon/common_source/back.h backgammon+/common_source/back.h
--- backgammon/common_source/back.h	Wed Feb 10 12:29:47 1999
+++ backgammon+/common_source/back.h	Mon Jul 26 16:20:58 1999
@@ -146,7 +146,7 @@
 int	count __P((void));
 void	curmove __P((int, int));
 int	dotable __P((char, int));
-void	errexit __P((const char *));
+void	errexit __P((const char *)) __attribute__((__noreturn__));
 void	fancyc __P((int));
 void	fboard __P((void));
 void	fixcol __P((int, int, int, int, int));
@@ -168,7 +168,7 @@
 void	newline __P((void));
 void	newpos __P((void));
 void	nexturn __P((void));
-void	norec __P((const char *));
+void	norec __P((const char *)) __attribute__((__noreturn__));
 void	odds __P((int, int, int));
 void	proll __P((void));
 int	quit __P((void));
>Audit-Trail:
>Unformatted: