summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-03-25 21:30:00 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-03-25 21:30:00 +0000
commit965de996f969278c545606250915a97325b581ad (patch)
treee6dbd518866ed98f793d1c5bcf0c2c776d23fa49 /usr.bin/cvs/buf.c
parent3d91cfb2d45155b5a2ced592fe223233a777c32f (diff)
Correct integer types, remove unused arguments, non-portable bitshifts
changed to division, KNF, replace unreachable code with goto fail, et cetera. Found by lint. The free() -> xfree() as well. OK niallo@
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index 74614a18062..29c7bc1c85f 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.39 2006/03/23 08:50:41 xsa Exp $ */
+/* $OpenBSD: buf.c,v 1.40 2006/03/25 21:29:58 ray Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -246,7 +246,7 @@ cvs_buf_putc(BUF *b, int c)
*
*/
u_char
-cvs_buf_getc(BUF *b, u_int pos)
+cvs_buf_getc(BUF *b, size_t pos)
{
return (b->cb_cur[pos]);
}