summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2003-01-28 00:33:53 +0000
committerjwd <jwd@FreeBSD.org>2003-01-28 00:33:53 +0000
commit24a72fc2712b85204c5802af4bc6b0c236125dde (patch)
tree8b50de968b4e080d6b00542738f1235cf37179c4 /lib/libfetch
parentc26355244cdf0fa950fd8157737000f25f510ce2 (diff)
downloadFreeBSD-src-24a72fc2712b85204c5802af4bc6b0c236125dde.zip
FreeBSD-src-24a72fc2712b85204c5802af4bc6b0c236125dde.tar.gz
Fix signed/unsigned comparison warning/error from 'make release'
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index a7f5569..beeba0c 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -638,7 +638,7 @@ _fetch_netrc_auth(struct url *url)
FILE *f;
if ((p = getenv("NETRC")) != NULL) {
- if (snprintf(fn, sizeof fn, "%s", p) >= sizeof fn) {
+ if (snprintf(fn, sizeof fn, "%s", p) >= (int)sizeof(fn)) {
_fetch_info("$NETRC specifies a file name "
"longer than PATH_MAX");
return (-1);
@@ -651,7 +651,7 @@ _fetch_netrc_auth(struct url *url)
(p = pwd->pw_dir) == NULL)
return (-1);
}
- if (snprintf(fn, sizeof fn, "%s/.netrc", p) >= sizeof fn)
+ if (snprintf(fn, sizeof fn, "%s/.netrc", p) >= (int)sizeof(fn))
return (-1);
}
@@ -676,7 +676,7 @@ _fetch_netrc_auth(struct url *url)
if ((word = _fetch_read_word(f)) == NULL)
goto ferr;
if (snprintf(url->user, sizeof url->user,
- "%s", word) > sizeof url->user) {
+ "%s", word) > (int)sizeof(url->user)) {
_fetch_info("login name in .netrc is too long");
url->user[0] = '\0';
}
@@ -684,7 +684,7 @@ _fetch_netrc_auth(struct url *url)
if ((word = _fetch_read_word(f)) == NULL)
goto ferr;
if (snprintf(url->pwd, sizeof url->pwd,
- "%s", word) > sizeof url->pwd) {
+ "%s", word) > (int)sizeof(url->pwd)) {
_fetch_info("password in .netrc is too long");
url->pwd[0] = '\0';
}
OpenPOWER on IntegriCloud