summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-14 00:35:16 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-14 00:35:16 +0000
commitc88eb288100b3f15ac34ceb475061e755fc76106 (patch)
treeea94f865f99db7df55e41122f538bf91895cf9f3
parentdea0723d9dbde64061580227eda7b96d5933758e (diff)
missing space and kill a gcc warning
-rw-r--r--usr.bin/cvs/diff.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index d69c6d87d71..518eb5ca177 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.17 2005/01/13 23:39:42 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.18 2005/01/14 00:35:15 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -832,7 +832,7 @@ isqrt(int n)
int y, x = 1;
if (n == 0)
- return(0);
+ return (0);
do { /* newton was a stinker */
y = x;
@@ -851,7 +851,8 @@ stone(int *a, int n, int *b, int *c)
int oldc, tc, oldl;
u_int numtries;
- const u_int bound = dflag ? UINT_MAX : MAX(256, isqrt(n));
+ /* XXX move the isqrt() out of the macro to avoid multiple calls */
+ const u_int bound = dflag ? UINT_MAX : MAX(256, (u_int)isqrt(n));
k = 0;
c[0] = newcand(0, 0, 0);