diff options
| author | Guillaume Nault <g.nault@alphalink.fr> | 2012-09-04 20:29:18 +0200 |
|---|---|---|
| committer | Kozlov Dmitry <xeb@mail.ru> | 2012-09-05 22:16:03 +0400 |
| commit | 5f355048894ede9e983c7f02cc5915385620db3f (patch) | |
| tree | 546bfa35e93ad271078da7fac67e14cc8e798548 /accel-pppd/ctrl/pptp | |
| parent | 07ead7eed242981335aadd34aa3d7b3e7da33b81 (diff) | |
| download | accel-ppp-5f355048894ede9e983c7f02cc5915385620db3f.tar.gz accel-ppp-5f355048894ede9e983c7f02cc5915385620db3f.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/ctrl/pptp')
| -rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index f2e9d43c..a3476c5e 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -1,3 +1,4 @@ +#include <inttypes.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> @@ -222,7 +223,7 @@ static int pptp_start_ctrl_conn_rqst(struct pptp_conn_t *conn) } if (msg->version != htons(PPTP_VERSION)) { - log_ppp_warn("PPTP version mismatch: expecting %x, received %s\n", PPTP_VERSION, msg->version); + log_ppp_warn("PPTP version mismatch: expecting %x, received %" PRIu32 "\n", PPTP_VERSION, msg->version); if (send_pptp_start_ctrl_conn_rply(conn, PPTP_CONN_RES_PROTOCOL, 0)) return -1; return 0; |
