Fix a format string pointer diff specifier. remove-warnings
authorBenjamin Cama <benoar@dolka.fr>
Sun, 25 Sep 2011 19:14:32 +0000 (21:14 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Sun, 25 Sep 2011 19:14:32 +0000 (21:14 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
ppp.c

diff --git a/ppp.c b/ppp.c
index 1c97b0c..5dccf0d 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -2375,7 +2375,7 @@ uint8_t *makeppp(uint8_t *b, int size, uint8_t *p, int l, sessionidt s, tunnelid
 
        if ((b - start) + l > size)
        {
 
        if ((b - start) + l > size)
        {
-               LOG(2, s, t, "makeppp would overflow buffer (size=%d, header+payload=%d)\n", size, (b - start) + l);
+               LOG(2, s, t, "makeppp would overflow buffer (size=%d, header+payload=%td)\n", size, (b - start) + l);
                return NULL;
        }
 
                return NULL;
        }