svn commit: r285141 - head/lib/libfetch
Marcelo Araujo
araujo at FreeBSD.org
Sat Jul 4 17:22:08 UTC 2015
Author: araujo (ports committer)
Date: Sat Jul 4 17:22:07 2015
New Revision: 285141
URL: https://svnweb.freebsd.org/changeset/base/285141
Log:
Remove unused variable to silence clang warning.
Differential Revision: D2683
Reviewed by: rodrigc, bapt
Modified:
head/lib/libfetch/http.c
Modified: head/lib/libfetch/http.c
==============================================================================
--- head/lib/libfetch/http.c Sat Jul 4 16:42:14 2015 (r285140)
+++ head/lib/libfetch/http.c Sat Jul 4 17:22:07 2015 (r285141)
@@ -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
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];
}
More information about the svn-src-head
mailing list