diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:43:51 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:43:51 +0000 |
commit | b3cf0a4cb67d5932648c38d9b5aae818e90960d8 (patch) | |
tree | 506c2eafac2c980a71d85708618575c9a5ac2c55 /games/arithmetic | |
parent | bff9547f6441e26f448c441a791504c44a056e5d (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'games/arithmetic')
-rw-r--r-- | games/arithmetic/arithmetic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index 367cee763b1..90f03ce1b2e 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arithmetic.c,v 1.15 2004/07/09 15:59:26 deraadt Exp $ */ +/* $OpenBSD: arithmetic.c,v 1.16 2007/03/20 03:43:50 tedu Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: arithmetic.c,v 1.15 2004/07/09 15:59:26 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: arithmetic.c,v 1.16 2007/03/20 03:43:50 tedu Exp $"; #endif #endif /* not lint */ @@ -236,7 +236,7 @@ retry: (void)printf("\n"); return(EOF); } - for (p = line; *p && isspace(*p); ++p); + for (p = line; isspace(*p); ++p); if (!isdigit(*p)) { (void)printf("Please type a number.\n"); continue; |