From: Khem Raj Date: Tue, 8 Apr 2025 07:15:57 +0000 (-0700) Subject: pppd: Fix building session.c with GCC 15 (#553) X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=fb769c380eeacf23b64cb3bf7860ba49a0e0eed5;p=ppp.git pppd: Fix building session.c with GCC 15 (#553) Fixed building with GCC 15 which defaults to C23 and find conflicting declration of getspnam() here with the one provided by shadow.h (extern struct spwd *getspnam (const char *__name);) Fixes ../../ppp-2.5.2/pppd/session.c: In function 'session_start': ../../ppp-2.5.2/pppd/session.c:185:18: error: conflicting types for 'getspnam'; have 'struct spwd *(void)' 185 | struct spwd *getspnam(); | ^~~~~~~~ Signed-off-by: Khem Raj --- diff --git a/pppd/session.c b/pppd/session.c index f08d8e1..9cc7538 100644 --- a/pppd/session.c +++ b/pppd/session.c @@ -182,7 +182,6 @@ session_start(const int flags, const char *user, const char *passwd, const char char *cbuf; #ifdef HAVE_SHADOW_H struct spwd *spwd; - struct spwd *getspnam(); long now = 0; #endif /* #ifdef HAVE_SHADOW_H */ #endif /* #ifdef PPP_WITH_PAM */