diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-10 14:49:21 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-10 14:49:21 +0000 |
commit | 084d2b9d61aa63ee95d1a3a40a1ec90585c1e32f (patch) | |
tree | 0ff149f6d105904d9c08ede1d18a0ff60bcb32c3 /usr.bin/cvs/root.c | |
parent | 438affe30176a61ddfcb5338b2cac1f6c83a2d77 (diff) |
fgets() expects the 2nd arg to be an int. OK jfb@ joris@.
Diffstat (limited to 'usr.bin/cvs/root.c')
-rw-r--r-- | usr.bin/cvs/root.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c index f470b4e307a..4574450df49 100644 --- a/usr.bin/cvs/root.c +++ b/usr.bin/cvs/root.c @@ -1,4 +1,4 @@ -/* $OpenBSD: root.c,v 1.22 2005/08/09 10:33:46 joris Exp $ */ +/* $OpenBSD: root.c,v 1.23 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -286,7 +286,7 @@ cvsroot_get(const char *dir) } } - if (fgets(line, sizeof(line), fp) == NULL) { + if (fgets(line, (int)sizeof(line), fp) == NULL) { cvs_log(LP_ERR, "failed to read line from %s", CVS_PATH_ROOTSPEC); (void)fclose(fp); |