]> git.ipfire.org Git - thirdparty/shadow.git/commit
defines.h: Remove definition of STRFCPY()
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Jul 2023 16:13:06 +0000 (18:13 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit370652ba058c6a1099d40fa813e0d8a71ba4cb4c
tree2a8cae981ec0a3dbdcccf0fa823800a85eb2479a
parent3029883888266d7121bb267c6cf4ad79b6f2c144
defines.h: Remove definition of STRFCPY()

It's not being used anymore.  We got rid of it in favor of better APIs.

Well, it's still being used in one place: a contrib/ patch, but I
explicitly want to break it, so that someone reviews it.  I don't want
to modify it, since it's not being tested, so it would be very risky for
me to touch it.  Instead, let it bitrot, and if someone cares, they'll
update it correctly.

BTW, the comment that said /* danger -side effects */ was wrong:
sizeof() doesn't evaluate the argument (unless it's a VLA), so there
wasn't really a double-evaluation issue.

Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h