]> git.ipfire.org Git - thirdparty/shadow.git/commit
Declare read-only lookup pointers const
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 3 Jan 2022 11:26:25 +0000 (12:26 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Mon, 3 Jan 2022 14:09:17 +0000 (15:09 +0100)
commit7909308285af36ef6f68a282701e6ea6f69dc57a
tree6be87eab9a526671f8b481ce9d7f5af954afb6d6
parenta74114fe34285f587a27562c6938db42142fa6f6
Declare read-only lookup pointers const

pwck.c:587:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  587 |                         spw = (struct spwd *) spw_locate (pwd->pw_name);
      |                               ^

grpck.c:599:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  599 |                         sgr = (struct sgrp *) sgr_locate (grp->gr_name);
      |                               ^

grpck.c:761:23: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  761 |                 grp = (struct group *) gr_locate (sgr->sg_name);
      |                       ^
src/grpck.c
src/pwck.c