]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src: add missing declaration of `getdef_bool`
authorSergei Trofimovich <slyich@gmail.com>
Fri, 1 Dec 2023 23:04:43 +0000 (23:04 +0000)
committerSerge Hallyn <serge@hallyn.com>
Sat, 2 Dec 2023 17:04:35 +0000 (11:04 -0600)
Upcoming `gcc-14` enabled a few warnings into errors, like
`-Wimplicit-function-declaration`. This caused `shadow` build to fail
as:

    pwunconv.c: In function 'main':
    pwunconv.c:132:13: error: implicit declaration of function 'getdef_bool' [-Wimplicit-function-declaration]
      132 |         if (getdef_bool("USE_TCB")) {
          |             ^~~~~~~~~~~

The change adds missing include headers.

src/pwunconv.c
src/vipw.c

index b8624359d985ad0151f7801e516907d756bbf372..454bc1a112c11a43fbd2910f46044b3c6a42db35 100644 (file)
@@ -18,6 +18,7 @@
 #include <unistd.h>
 #include <getopt.h>
 #include "defines.h"
+#include "getdef.h"
 #include "nscd.h"
 #include "sssd.h"
 #include "prototypes.h"
index f387b4ab0ed035b532d7c80b2c5a23b5beb76884..ab1c811643db7fb490524a493a6b6f8779a4b696 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "alloc.h"
 #include "defines.h"
+#include "getdef.h"
 #include "groupio.h"
 #include "nscd.h"
 #include "sssd.h"