chiark / gitweb /
memfd: simplify API
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Aug 2014 17:39:16 +0000 (19:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Aug 2014 17:39:16 +0000 (19:39 +0200)
commit4531a9bc206c0c22e29b56ac4a7528afba2e9c83
tree6ea5ee56ccd2d9b16234e83e1326bef649962471
parent8a0dec98a3d18666da739c984f8952865d6e0ce3
memfd: simplify API

Now, that the memfd stuff is not exported anymore, we can simplify a few
things:

Use assert() instead of assert_return(), since this is used internally
only, and we should be less permissive then.

No need to pass an allocated fd back by call-by-reference, we can just
directly return it.
src/libsystemd/sd-bus/test-bus-zero-copy.c
src/shared/memfd.c
src/shared/memfd.h