]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/c: use returns_nonnull function attribute in xalloc.h
authorSami Kerola <kerolasa@iki.fi>
Sat, 6 Oct 2018 11:31:09 +0000 (12:31 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 21 Nov 2018 20:54:18 +0000 (20:54 +0000)
commitf1b327f8d5c8de7bf7fae99e85765d0954a25bac
tree775dc313067395bf7efea88b1119d754211b8e6f
parentca2071c6ea01419b954ad61397f4bee41b5f441a
include/c: use returns_nonnull function attribute in xalloc.h

Let the compiler optimize based on the knowledge that the return value will
never be null.

Reference: https://patchwork.ozlabs.org/patch/281112/#631159
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/c.h
include/xalloc.h