diff options
author | is <is@NetBSD.org> | 1997-10-15 08:53:24 +0000 |
---|---|---|
committer | is <is@NetBSD.org> | 1997-10-15 08:53:24 +0000 |
commit | eb97288b64a4f39e9d0b328aa16a6fd4c657c0e0 (patch) | |
tree | 97418e973ddf7467e7a926b66baef7461403bf98 /arithmetic | |
parent | 216b7a5ba4e82202a7c67e6a5d81982a7207ddd3 (diff) | |
download | bsdgames-darwin-eb97288b64a4f39e9d0b328aa16a6fd4c657c0e0.tar.gz bsdgames-darwin-eb97288b64a4f39e9d0b328aa16a6fd4c657c0e0.tar.zst bsdgames-darwin-eb97288b64a4f39e9d0b328aa16a6fd4c657c0e0.zip |
Make compiler happy.
Diffstat (limited to 'arithmetic')
-rw-r--r-- | arithmetic/arithmetic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index fa16d56c..29ffcb99 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $ */ +/* $NetBSD: arithmetic.c,v 1.9 1997/10/15 08:53:24 is Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.9 1997/10/15 08:53:24 is Exp $"); #endif #endif /* not lint */ @@ -197,7 +197,7 @@ problem() int left, op, right, result; char line[80]; - left = result = 0; + right = left = result = 0; op = keys[random() % nkeys]; if (op != '/') right = getrandom(rangemax + 1, op, 1); |