]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix building session.c with GCC 15 (#553)
authorKhem Raj <raj.khem@gmail.com>
Tue, 8 Apr 2025 07:15:57 +0000 (00:15 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 07:15:57 +0000 (17:15 +1000)
commitfb769c380eeacf23b64cb3bf7860ba49a0e0eed5
treeb295bb37e5fd57ea66f441f4b7d4b1562aefe673
parent7060ac7c505e685bebca05eb14fa1d9550364051
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 <raj.khem@gmail.com>
pppd/session.c