diff options
author | hubertf <hubertf@NetBSD.org> | 1998-08-29 22:53:03 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1998-08-29 22:53:03 +0000 |
commit | c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (patch) | |
tree | 0beadaa121ac2fada96d7d77d0d5e78729ef6fff /backgammon/teachgammon | |
parent | b5ca0e4da5f9e9439390a53e0d218c013a0b420e (diff) | |
download | bsdgames-darwin-c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482.tar.gz bsdgames-darwin-c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482.tar.zst bsdgames-darwin-c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482.zip |
Use symbolic names for signals(!), open(2)-constants, ...
Fix applied as per PR 6058 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'backgammon/teachgammon')
-rw-r--r-- | backgammon/teachgammon/teach.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |