]> git.ipfire.org Git - thirdparty/shadow.git/commit
Declare argument of nss_init const
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 3 Jan 2022 11:49:02 +0000 (12:49 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Mon, 3 Jan 2022 14:09:17 +0000 (15:09 +0100)
commit119cee142ed066033f5e0c58d7d6eda1b5b0637a
treec6aaf59f5cc5b030e154024a9154c00efd3f15ae
parent946eb8418244675b14efb9a5741963b6ee43a01c
Declare argument of nss_init const

nss_init() does not modify its path argument, thus declare it const.
Also drop superfluous prototype.

nss.c:54:31: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   54 |                 nsswitch_path = NSSWITCH;
      |                               ^
lib/nss.c
lib/prototypes.h
libmisc/idmapping.h