From c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 29 Aug 1998 22:53:03 +0000 Subject: Use symbolic names for signals(!), open(2)-constants, ... Fix applied as per PR 6058 by Joseph Myers --- backgammon/teachgammon/teach.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backgammon/teachgammon') diff --git a/backgammon/teachgammon/teach.c b/backgammon/teachgammon/teach.c index f473d044..8a0089a7 100644 --- a/backgammon/teachgammon/teach.c +++ b/backgammon/teachgammon/teach.c @@ -1,4 +1,4 @@ -/* $NetBSD: teach.c,v 1.5 1997/10/10 08:59:52 lukem Exp $ */ +/* $NetBSD: teach.c,v 1.6 1998/08/29 22:53:04 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: teach.c,v 1.5 1997/10/10 08:59:52 lukem Exp $"); +__RCSID("$NetBSD: teach.c,v 1.6 1998/08/29 22:53:04 hubertf Exp $"); #endif #endif /* not lint */ @@ -72,7 +72,7 @@ main(argc, argv) { int i; - signal(2, getout); + signal(SIGINT, getout); if (tcgetattr(0, &old) == -1) /* get old tty mode */ errexit("teachgammon(gtty)"); noech = old; -- cgit v1.2.3-56-ge451