]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix compile warnings
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Jan 2011 10:49:04 +0000 (11:49 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Jan 2011 10:49:04 +0000 (11:49 +0100)
src/modules/rlm_eap/types/rlm_eap_gtc/rlm_eap_gtc.c

index de7d6a21b973f65ff40f196cd5e563b50e6d94b5..b600f8da8d8321e02a19e813573c4501595963a0 100644 (file)
@@ -116,7 +116,7 @@ static int gtc_initiate(void *type_data, EAP_HANDLER *handler)
        rlm_eap_gtc_t *inst = (rlm_eap_gtc_t *) type_data;
 
        if (!radius_xlat(challenge_str, sizeof(challenge_str), inst->challenge, handler->request, NULL)) {
-               radlog(L_ERR, "rlm_eap_gtc: xlat failed.", inst->challenge);
+               radlog(L_ERR, "rlm_eap_gtc: xlat of \"%s\" failed", inst->challenge);
                return 0;
        }
 
@@ -203,7 +203,7 @@ static int gtc_authenticate(void *type_data, EAP_HANDLER *handler)
                }
 
                if (eap_ds->response->type.length != vp->length) {
-                       DEBUG2("  rlm_eap_gtc: ERROR: Passwords are of different length. %d %d", eap_ds->response->type.length, vp->length);
+                 DEBUG2("  rlm_eap_gtc: ERROR: Passwords are of different length. %u %u", (unsigned) eap_ds->response->type.length, (unsigned) vp->length);
                        eap_ds->request->code = PW_EAP_FAILURE;
                        return 0;
                }