Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pppd/crypto: Fix gcc 14 build (#524)
Fix this: crypto.c: In function 'PPP_crypto_error': crypto.c:178:11: error: implicit declaration of function 'vsnprintf' [-Wimplicit-function-declaration] 178 | off = vsnprintf(buf, len, fmt, args); | ^~~~~~~~~ crypto.c:41:1: note: include '<stdio.h>' or provide a declaration of 'vsnprintf' 40 | #include "crypto-priv.h" +++ |+#include <stdio.h> 41 | crypto.c:178:26: warning: 'vsnprintf' argument 2 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 178 | off = vsnprintf(buf, len, fmt, args); | ^~~ <built-in>: note: built-in 'vsnprintf' declared here Signed-off-by: Tan Zien <[email protected]>
- Loading branch information