[PATCH v2] drop some obsolete (char*) casts

Mike Frysinger vapier at gentoo.org
Fri Oct 1 11:40:47 AEST 2021


On 01 Oct 2021 01:16, Thorsten Glaser wrote:
> On Thu, 30 Sep 2021, Mike Frysinger wrote:
> 
> >  			homedir = percent_expand(cp, "d", user_pw->pw_dir,
> > -			    "u", user_pw->pw_name, "U", uidstr, (char *)NULL);
> > +			    "u", user_pw->pw_name, "U", uidstr, NULL);
> 
> This also has the sentinel attribute and therefore requires the/a cast.

of course it is.  the sftp.c file was the only one i was actually looking
at & testing, and the others i picked up with a grep.  thanks.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20210930/6a261473/attachment.asc>


More information about the openssh-unix-dev mailing list