diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2015-07-04 17:22:07 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2015-07-04 17:22:07 +0000 |
commit | ddcc2ecb3adeb70ac944bcdb0c41dd6d082a33e4 (patch) | |
tree | 46a0e4f0c0b7b4b6b2763e30e67ef0f8a139a0e4 /lib | |
parent | fd1099547835ea5391feee010529cf34488af228 (diff) | |
download | src-ddcc2ecb3adeb70ac944bcdb0c41dd6d082a33e4.tar.gz src-ddcc2ecb3adeb70ac944bcdb0c41dd6d082a33e4.zip |
Remove unused variable to silence clang warning.
Differential Revision: D2683
Reviewed by: rodrigc, bapt
Notes
Notes:
svn path=/head/; revision=285141
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfetch/http.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index e0c297971a36..91ca6a399739 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -1330,7 +1330,6 @@ static int http_authorize(conn_t *conn, const char *hdr, http_auth_challenges_t *cs, http_auth_params_t *parms, struct url *url) { - http_auth_challenge_t *basic = NULL; http_auth_challenge_t *digest = NULL; int i; @@ -1340,10 +1339,8 @@ http_authorize(conn_t *conn, const char *hdr, http_auth_challenges_t *cs, return (-1); } - /* Look for a Digest and a Basic challenge */ + /* Look for a Digest */ for (i = 0; i < cs->count; i++) { - if (cs->challenges[i]->scheme == HTTPAS_BASIC) - basic = cs->challenges[i]; if (cs->challenges[i]->scheme == HTTPAS_DIGEST) digest = cs->challenges[i]; } |