From 084d2b9d61aa63ee95d1a3a40a1ec90585c1e32f Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 10 Aug 2005 14:49:21 +0000 Subject: fgets() expects the 2nd arg to be an int. OK jfb@ joris@. --- usr.bin/cvs/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/server.c') diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c index 3c76ca702cd..20887c599a1 100644 --- a/usr.bin/cvs/server.c +++ b/usr.bin/cvs/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.21 2005/08/08 14:28:59 xsa Exp $ */ +/* $OpenBSD: server.c,v 1.22 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -103,7 +103,7 @@ cvs_server(int argc, char **argv) return (CVS_EX_FILE); for (;;) { - if (fgets(reqbuf, sizeof(reqbuf), stdin) == NULL) { + if (fgets(reqbuf, (int)sizeof(reqbuf), stdin) == NULL) { if (feof(stdin)) break; else if (ferror(stdin)) -- cgit v1.2.3