X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fopenid%2Fserv_openid_rp.c;h=c82a6c286a0a5175fe3a2f1a646f4ddf2873ff11;hp=080916282bd17ceb628cb8620150c485ce174394;hb=e26a8dee20d1726b4995821f717f867f50fc5659;hpb=e1241b61d2f8d7935670c36ab5fb4e10262514a6 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); }