summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-08-10 14:49:21 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-08-10 14:49:21 +0000
commit084d2b9d61aa63ee95d1a3a40a1ec90585c1e32f (patch)
tree0ff149f6d105904d9c08ede1d18a0ff60bcb32c3 /usr.bin/cvs/proto.c
parent438affe30176a61ddfcb5338b2cac1f6c83a2d77 (diff)
fgets() expects the 2nd arg to be an int. OK jfb@ joris@.
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 5e869645501..ada97b4d73f 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.73 2005/08/10 08:14:07 xsa Exp $ */
+/* $OpenBSD: proto.c,v 1.74 2005/08/10 14:49:20 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -751,7 +751,7 @@ cvs_getresp(struct cvsroot *root)
do {
/* wait for incoming data */
- if (fgets(cvs_proto_buf, sizeof(cvs_proto_buf),
+ if (fgets(cvs_proto_buf, (int)sizeof(cvs_proto_buf),
root->cr_srvout) == NULL) {
if (feof(root->cr_srvout))
return (0);
@@ -798,7 +798,7 @@ cvs_getln(struct cvsroot *root, char *lbuf, size_t len)
else
in = root->cr_srvout;
- if (fgets(lbuf, len, in) == NULL) {
+ if (fgets(lbuf, (int)len, in) == NULL) {
if (ferror(in)) {
cvs_log(LP_ERRNO, "failed to read line");
return (-1);
@@ -867,7 +867,7 @@ cvs_getreq(void)
do {
/* wait for incoming data */
- if (fgets(cvs_proto_buf, sizeof(cvs_proto_buf),
+ if (fgets(cvs_proto_buf, (int)sizeof(cvs_proto_buf),
stdin) == NULL) {
if (feof(stdin))
return (0);