]> git.ipfire.org Git - thirdparty/shadow.git/commit
libmisc: Move xmalloc.c to alloc.c
authorAlejandro Colomar <alx@kernel.org>
Sun, 19 Feb 2023 19:40:16 +0000 (20:40 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 24 Feb 2023 02:28:43 +0000 (20:28 -0600)
commit881c1d63a19713bf62d9fbe3da0e15a4b4f9b375
tree24165b5fe85b966d695b2095e5ffb4bee7e03d9f
parenta578617cc00276be61f47cf515962c5ff6bf2bc5
libmisc: Move xmalloc.c to alloc.c

We'll expand the contents in a following commit, so let's move the file
to a more generic name, have a dedicated header, and update includes.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Use the new header for xstrdup()

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/alloc.h [new file with mode: 0644]
lib/prototypes.h
libmisc/Makefile.am
libmisc/alloc.c [moved from libmisc/xmalloc.c with 100% similarity]
libmisc/copydir.c
libmisc/entry.c
libmisc/env.c
libmisc/motd.c
src/chage.c
src/chfn.c
src/chsh.c