diff options
author | des <des@FreeBSD.org> | 2004-07-27 11:30:35 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-07-27 11:30:35 +0000 |
commit | f67167048a0d1e289ca69d4d5de9326736ed5f26 (patch) | |
tree | 954a353a42a033fea3735624a92fea9cd2d2bfc4 /usr.bin/fetch | |
parent | e4560cbd1d161c303159ea98ee39f3e5a6a2d110 (diff) | |
download | FreeBSD-src-f67167048a0d1e289ca69d4d5de9326736ed5f26.zip FreeBSD-src-f67167048a0d1e289ca69d4d5de9326736ed5f26.tar.gz |
Style nits.
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index ed62491..85488a1 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -269,13 +269,12 @@ query_auth(struct url *URL) tcflag_t saved_flags; int i, nopwd; - fprintf(stderr, "Authentication required for <%s://%s:%d/>!\n", URL->scheme, URL->host, URL->port); fprintf(stderr, "Login: "); if (fgets(URL->user, sizeof URL->user, stdin) == NULL) - return -1; + return (-1); for (i = 0; URL->user[i]; ++i) if (isspace(URL->user[i])) URL->user[i] = '\0'; @@ -293,12 +292,12 @@ query_auth(struct url *URL) nopwd = (fgets(URL->pwd, sizeof URL->pwd, stdin) == NULL); } if (nopwd) - return -1; + return (-1); for (i = 0; URL->pwd[i]; ++i) if (isspace(URL->pwd[i])) URL->pwd[i] = '\0'; - return 0; + return (0); } /* @@ -687,7 +686,7 @@ fetch(char *URL, const char *path) fetchFreeURL(url); if (tmppath != NULL) free(tmppath); - return r; + return (r); } static void |