diff options
author | wiz <wiz@NetBSD.org> | 2003-01-06 13:04:54 +0000 |
---|---|---|
committer | wiz <wiz@NetBSD.org> | 2003-01-06 13:04:54 +0000 |
commit | c4b738a2a96ca9fb341206d159d6324f16f735d5 (patch) | |
tree | b8242ff0bd3e9326320f7cd67aebdb8f1912894b | |
parent | b39360fd3b84a8fadbb056ffa86bca3b6ee2f20d (diff) | |
download | bsdgames-darwin-c4b738a2a96ca9fb341206d159d6324f16f735d5.tar.gz bsdgames-darwin-c4b738a2a96ca9fb341206d159d6324f16f735d5.tar.zst bsdgames-darwin-c4b738a2a96ca9fb341206d159d6324f16f735d5.zip |
interrupt with two rs.
-rw-r--r-- | monop/getinp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monop/getinp.c b/monop/getinp.c index 66457448..0c4cf326 100644 --- a/monop/getinp.c +++ b/monop/getinp.c @@ -1,4 +1,4 @@ -/* $NetBSD: getinp.c,v 1.9 2000/07/10 10:19:26 itojun Exp $ */ +/* $NetBSD: getinp.c,v 1.10 2003/01/06 13:04:55 wiz Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getinp.c,v 1.9 2000/07/10 10:19:26 itojun Exp $"); +__RCSID("$NetBSD: getinp.c,v 1.10 2003/01/06 13:04:55 wiz Exp $"); #endif #endif /* not lint */ @@ -66,7 +66,7 @@ inter: printf("%s", prompt); for (sp = buf; (c=getchar()) != '\n'; ) { *sp = c; - if (c == -1) /* check for interupted system call */ + if (c == -1) /* check for interrupted system call */ goto inter; else if (sp != buf || *sp != ' ') sp++; |