summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-02-18 23:20:45 +0000
committertedu <tedu@openbsd.org>2015-02-18 23:20:45 +0000
commiteb8dbf3e2d0d217fb526ac7baebd9cf650067df0 (patch)
tree8b9597323cb17e7ce3c84ef4fc7cdc573d74e0b8
parentdon't cast function arguments; use reallocarray in one place (diff)
downloadwireguard-openbsd-eb8dbf3e2d0d217fb526ac7baebd9cf650067df0.tar.xz
wireguard-openbsd-eb8dbf3e2d0d217fb526ac7baebd9cf650067df0.zip
no reason for magic numbers to be octal. just drop the leading 0.
still equally magic.
-rw-r--r--games/fish/fish.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c
index 5559fa9432f..4d39122e47b 100644
--- a/games/fish/fish.c
+++ b/games/fish/fish.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fish.c,v 1.16 2013/08/29 20:22:12 naddy Exp $ */
+/* $OpenBSD: fish.c,v 1.17 2015/02/18 23:20:45 tedu Exp $ */
/* $NetBSD: fish.c,v 1.3 1995/03/23 08:28:18 cgd Exp $ */
/*-
@@ -227,7 +227,7 @@ promove(void)
max = i;
return(max);
}
- if (nrandom(1024) == 0723) {
+ if (nrandom(1024) == 723) {
for (i = 0; i < RANKS; ++i)
if (userhand[i] && comphand[i])
return(i);
@@ -316,11 +316,11 @@ chkwinner(int player, const int *hand)
(void)printf("\nI have %d, you have %d.\n", cb, ub);
if (ub > cb) {
(void)printf("\nYou win!!!\n");
- if (nrandom(1024) == 0723)
+ if (nrandom(1024) == 723)
(void)printf("Cheater, cheater, pumpkin eater!\n");
} else if (cb > ub) {
(void)printf("\nI win!!!\n");
- if (nrandom(1024) == 0723)
+ if (nrandom(1024) == 723)
(void)printf("Hah! Stupid peasant!\n");
} else
(void)printf("\nTie!\n");