shadow/lib
Christian Göttsche a8166a86ed Declare read-only arguments of run_part(s) const
run_part() and run_parts() do not modify their directory, name and
action arguments.
Also include the header in the implementation to provide the prototypes.

useradd.c:2495:59: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                                                           ^
useradd.c:2495:24: warning: passing argument 1 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from useradd.c:45:
../lib/run_part.h:2:22: note: expected ‘char *’ but argument is of type ‘const char *’
    2 | int run_parts (char *directory, char *name, char *action);
      |                ~~~~~~^~~~~~~~~
useradd.c:2496:25: warning: passing argument 3 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2496 |                         "useradd")) {
      |                         ^~~~~~~~~
2022-01-03 15:09:17 +01:00
..
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
commonio.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
commonio.h Update licensing info 2021-12-23 19:36:50 -06:00
defines.h Remove HAVE_MEMSET ifdefs 2021-12-27 21:52:00 +01:00
encrypt.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
exitcodes.h Update licensing info 2021-12-23 19:36:50 -06:00
faillog.h Update licensing info 2021-12-23 19:36:50 -06:00
fields.c Update licensing info 2021-12-23 19:36:50 -06:00
fputsx.c Update licensing info 2021-12-23 19:36:50 -06:00
get_gid.c Update licensing info 2021-12-23 19:36:50 -06:00
get_pid.c Update licensing info 2021-12-23 19:36:50 -06:00
get_uid.c Update licensing info 2021-12-23 19:36:50 -06:00
getdef.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
getdef.h Update licensing info 2021-12-23 19:36:50 -06:00
getlong.c Update licensing info 2021-12-23 19:36:50 -06:00
getulong.c Update licensing info 2021-12-23 19:36:50 -06:00
groupio.c Update licensing info 2021-12-23 19:36:50 -06:00
groupio.h Update licensing info 2021-12-23 19:36:50 -06:00
groupmem.c Update licensing info 2021-12-23 19:36:50 -06:00
gshadow_.h Update licensing info 2021-12-23 19:36:50 -06:00
gshadow.c Update licensing info 2021-12-23 19:36:50 -06:00
lockpw.c Update licensing info 2021-12-23 19:36:50 -06:00
Makefile.am build: include lib/shadowlog_internal.h in dist tarballs 2022-01-02 21:06:36 -06:00
nscd.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
nscd.h * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to 2008-08-30 18:30:36 +00:00
nss.c Declare argument of nss_init const 2022-01-03 15:09:17 +01:00
pam_defs.h Update licensing info 2021-12-23 19:36:50 -06:00
port.c Update licensing info 2021-12-23 19:36:50 -06:00
port.h Update licensing info 2021-12-23 19:36:50 -06:00
prototypes.h Declare argument of nss_init const 2022-01-03 15:09:17 +01:00
pwauth.c Update licensing info 2021-12-23 19:36:50 -06:00
pwauth.h Update licensing info 2021-12-23 19:36:50 -06:00
pwio.c Update licensing info 2021-12-23 19:36:50 -06:00
pwio.h Update licensing info 2021-12-23 19:36:50 -06:00
pwmem.c Update licensing info 2021-12-23 19:36:50 -06:00
run_part.c Declare read-only arguments of run_part(s) const 2022-01-03 15:09:17 +01:00
run_part.h Declare read-only arguments of run_part(s) const 2022-01-03 15:09:17 +01:00
selinux.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
semanage.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
sgetgrent.c Update licensing info 2021-12-23 19:36:50 -06:00
sgetpwent.c Update licensing info 2021-12-23 19:36:50 -06:00
sgetspent.c Update licensing info 2021-12-23 19:36:50 -06:00
sgroupio.c Update licensing info 2021-12-23 19:36:50 -06:00
sgroupio.h Update licensing info 2021-12-23 19:36:50 -06:00
shadow.c Update licensing info 2021-12-23 19:36:50 -06:00
shadowio.c Update licensing info 2021-12-23 19:36:50 -06:00
shadowio.h Update licensing info 2021-12-23 19:36:50 -06:00
shadowlog_internal.h lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
shadowlog.c lib: provide default values for shadow_progname/shadow_logfd 2021-12-27 16:28:23 +00:00
shadowlog.h Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
shadowmem.c Update licensing info 2021-12-23 19:36:50 -06:00
spawn.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
sssd.c lib: rename Prog to shadow_progname, with only one definition 2021-12-25 22:41:58 +00:00
sssd.h Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
subordinateio.c Update licensing info 2021-12-23 19:36:50 -06:00
subordinateio.h fix newusers when nss provides subids 2021-05-23 08:16:16 -05:00
tcbfuncs.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
tcbfuncs.h * lib/tcbfuncs.h: Re-indent. 2010-03-18 19:23:00 +00:00
utent.c Update licensing info 2021-12-23 19:36:50 -06:00