summaryrefslogtreecommitdiff
path: root/accel-pppd/auth
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2012-09-04 20:29:18 +0200
committerKozlov Dmitry <xeb@mail.ru>2012-09-05 22:35:48 +0400
commitb4eec284b0814c01c575492af73dbe23ff81f5e8 (patch)
treed0bb188f1cd694f773b0cf26e00f4e2205311951 /accel-pppd/auth
parentfdeeb6f8547617a0478ffe847b76c46fa45487d0 (diff)
downloadaccel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.tar.gz
accel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.zip
Fix format string errors
Fix several errors and compiler warnings in format string arguments. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/auth')
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index b8f346aa..444a9df2 100644
--- a/accel-pppd/auth/auth_mschap_v2.c
+++ b/accel-pppd/auth/auth_mschap_v2.c
@@ -205,7 +205,7 @@ static void chap_send_failure(struct chap_auth_data_t *ad, char *mschap_error, c
sprintf((char *)(hdr + 1), "%s M=%s", mschap_error, reply_msg);
if (conf_ppp_verbose)
- log_ppp_info2("send [MSCHAP-v2 Failure id=%x \"%s\"]\n", hdr->id, hdr + 1);
+ log_ppp_info2("send [MSCHAP-v2 Failure id=%x \"%s\"]\n", hdr->id, (char *)(hdr + 1));
ppp_chan_send(ad->ppp, hdr, ntohs(hdr->len) + 2);
@@ -223,7 +223,7 @@ static void chap_send_success(struct chap_auth_data_t *ad, struct chap_response_
sprintf((char *)(hdr + 1), "S=%s M=%s", authenticator, conf_msg_success);
if (conf_ppp_verbose)
- log_ppp_info2("send [MSCHAP-v2 Success id=%x \"%s\"]\n", hdr->id, hdr + 1);
+ log_ppp_info2("send [MSCHAP-v2 Success id=%x \"%s\"]\n", hdr->id, (char *)(hdr + 1));
ppp_chan_send(ad->ppp, hdr, ntohs(hdr->len) + 2);