diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/cvs.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/entries.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/logmsg.c | 8 | ||||
-rw-r--r-- | usr.bin/cvs/proto.c | 8 | ||||
-rw-r--r-- | usr.bin/cvs/release.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/root.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/server.c | 4 |
7 files changed, 18 insertions, 18 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index 4b849eb568c..656e8662d7e 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.83 2005/08/10 08:05:00 xsa Exp $ */ +/* $OpenBSD: cvs.c,v 1.84 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -390,7 +390,7 @@ cvs_read_rcfile(void) return; } - while (fgets(linebuf, sizeof(linebuf), fp) != NULL) { + while (fgets(linebuf, (int)sizeof(linebuf), fp) != NULL) { linenum++; if ((len = strlen(linebuf)) == 0) continue; diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 94de7b16275..890ce761120 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.42 2005/07/25 12:05:43 xsa Exp $ */ +/* $OpenBSD: entries.c,v 1.43 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -125,7 +125,7 @@ cvs_ent_open(const char *dir, int flags) ep->cef_cur = NULL; TAILQ_INIT(&(ep->cef_ent)); - while (fgets(ebuf, sizeof(ebuf), fp) != NULL) { + while (fgets(ebuf, (int)sizeof(ebuf), fp) != NULL) { len = strlen(ebuf); if ((len > 0) && (ebuf[len - 1] == '\n')) ebuf[--len] = '\0'; diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c index 652ccaf5ad9..c7b5f4e6c93 100644 --- a/usr.bin/cvs/logmsg.c +++ b/usr.bin/cvs/logmsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: logmsg.c,v 1.19 2005/08/08 14:28:59 xsa Exp $ */ +/* $OpenBSD: logmsg.c,v 1.20 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -84,7 +84,7 @@ cvs_logmsg_open(const char *path) fprintf(stderr, "The specified message file seems big. " "Proceed anyways? (y/n) "); - if (fgets(lbuf, sizeof(lbuf), stdin) == NULL) { + if (fgets(lbuf, (int)sizeof(lbuf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); return (NULL); @@ -122,7 +122,7 @@ cvs_logmsg_open(const char *path) */ lcont = 0; - while (fgets(lbuf, sizeof(lbuf), fp) != NULL) { + while (fgets(lbuf, (int)sizeof(lbuf), fp) != NULL) { len = strlen(lbuf); if (len == 0) continue; @@ -273,7 +273,7 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added, "c)ontinue, e)dit, !)reuse this message unchanged " "for remaining dirs\nAction: (continue) "); - if (fgets(buf, sizeof(buf), stdin) == NULL) { + if (fgets(buf, (int)sizeof(buf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); break; } 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); diff --git a/usr.bin/cvs/release.c b/usr.bin/cvs/release.c index 5b37e215aef..8d335dd553e 100644 --- a/usr.bin/cvs/release.c +++ b/usr.bin/cvs/release.c @@ -1,4 +1,4 @@ -/* $OpenBSD: release.c,v 1.20 2005/08/01 11:18:10 xsa Exp $ */ +/* $OpenBSD: release.c,v 1.21 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -192,7 +192,7 @@ cvs_release_dir(CVSFILE *cf, void *arg) return (CVS_EX_DATA); } - while (fgets(buf, sizeof(buf), fp) != NULL) { + while (fgets(buf, (int)sizeof(buf), fp) != NULL) { if (strchr("ACMPRU", buf[0])) j++; (void)fputs(buf, stdout); 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); 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 <jfb@openbsd.org> * 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)) |