diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2019-10-02 09:04:09 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-10-02 09:04:09 +1000 |
commit | e400854cda14e5718fd888418911d4bfba31b0f1 (patch) | |
tree | a57e205ca0eff94703fd30478c182f3b87ceeb05 /pppdump | |
parent | 7f2f0deae2e0055373ccdd995cd3027aca546549 (diff) | |
download | ppp-e400854cda14e5718fd888418911d4bfba31b0f1.tar.gz |
pppdump: Eliminate printf format warning by using %zd
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'pppdump')
-rw-r--r-- | pppdump/pppdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pppdump/pppdump.c b/pppdump/pppdump.c index 87c2e8f..130300a 100644 --- a/pppdump/pppdump.c +++ b/pppdump/pppdump.c @@ -320,7 +320,7 @@ dumpppp(f) ++r; ++r; if (endp - r > mru) - printf(" ERROR: length (%d) > MRU (%d)\n", + printf(" ERROR: length (%zd) > MRU (%d)\n", endp - r, mru); if (decompress && fcs == PPP_GOODFCS) { /* See if this is a CCP or compressed packet */ |