Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pppd/crypto: fix gcc 14 build #524

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Commits on Oct 1, 2024

  1. pppd/crypto: fix gcc 14 build

    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]>
    nasbdh9 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    ce3e413 View commit details
    Browse the repository at this point in the history