From 5a555a984855e94b0fc3c9154da6b65208ba2c70 Mon Sep 17 00:00:00 2001 From: veego Date: Sun, 30 Aug 1998 09:19:36 +0000 Subject: Add braces to make the new egcs happy. --- cribbage/score.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cribbage/score.c') diff --git a/cribbage/score.c b/cribbage/score.c index d0ae050d..69c38a7f 100644 --- a/cribbage/score.c +++ b/cribbage/score.c @@ -1,4 +1,4 @@ -/* $NetBSD: score.c,v 1.5 1997/10/10 12:32:34 lukem Exp $ */ +/* $NetBSD: score.c,v 1.6 1998/08/30 09:19:37 veego Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: score.c,v 1.5 1997/10/10 12:32:34 lukem Exp $"); +__RCSID("$NetBSD: score.c,v 1.6 1998/08/30 09:19:37 veego Exp $"); #endif #endif /* not lint */ @@ -159,21 +159,23 @@ scorehand(hand, starter, n, crb, do_explain) sorthand(h, n + 1); /* sort by rank */ i = 2 * fifteens(h, n + 1); score += i; - if (do_explain) + if (do_explain) { if (i > 0) { (void) sprintf(buf, "%d points in fifteens", i); strcat(expl, buf); } else strcat(expl, "No fifteens"); + } i = pairuns(h, n + 1); score += i; - if (do_explain) + if (do_explain) { if (i > 0) { (void) sprintf(buf, ", %d points in pairs, %d in runs", pairpoints, runpoints); strcat(expl, buf); } else strcat(expl, ", No pairs/runs"); + } return (score); } -- cgit v1.2.3-56-ge451