X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fopenid%2Fserv_openid_rp.c;h=c82a6c286a0a5175fe3a2f1a646f4ddf2873ff11;hb=976ecc57b694ee60412d9b4a1be2fd07611d4ee2;hp=080916282bd17ceb628cb8620150c485ce174394;hpb=feb542114454b1f979c025ede9474f53b6715bce;p=citadel.git diff --git a/citadel/modules/openid/serv_openid_rp.c b/citadel/modules/openid/serv_openid_rp.c index 080916282..c82a6c286 100644 --- a/citadel/modules/openid/serv_openid_rp.c +++ b/citadel/modules/openid/serv_openid_rp.c @@ -485,7 +485,7 @@ int login_via_openid(StrBuf *claimed_id) */ void extract_link(StrBuf *target_buf, const char *rel, long repllen, StrBuf *source_buf) { - int len, i; + int i; const char *ptr; const char *href_start = NULL; const char *href_end = NULL; @@ -508,8 +508,6 @@ void extract_link(StrBuf *target_buf, const char *rel, long repllen, StrBuf *sou if (link_tag_end == NULL) break; for (i=0; i < 1; i++ ){ - len = link_tag_end - link_tag_start; - rel_start = cbmstrcasestr(link_tag_start, "rel="); if ((rel_start == NULL) || (rel_start > link_tag_end)) @@ -744,7 +742,7 @@ void cmd_oidf(char *argbuf) { if (len < 0) len = sizeof(thiskey) - 1; extract_token(thisdata, buf, 1, '|', sizeof thisdata); - syslog(LOG_DEBUG, "%s: [%d] %s\n", thiskey, strlen(thisdata), thisdata); + syslog(LOG_DEBUG, "%s: ["SIZE_T_FMT"] %s\n", thiskey, strlen(thisdata), thisdata); Put(keys, thiskey, len, strdup(thisdata), NULL); }