talloc: Convert error cecking macros into fns
authorSimo Sorce <idra@samba.org>
Fri, 5 Oct 2012 14:32:32 +0000 (10:32 -0400)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:34 +0000 (10:55 +0100)
commitfb8725acffc717b4aff749143de8653899454765
tree063693330cdc824c7fde57fcf758e16192635349
parent2565208ae14599e7738d4c164f557ff25e18ebfd
talloc: Convert error cecking macros into fns

This will avoid 'surprise returns' and makes the code cleare to readers.
These macros were complex enough to warrant a full function anyway not
just for readability but also for debuggability.

Thanks David for pointing out this issue.

Autobuild-User(master): Simo Sorce <idra@samba.org>
Autobuild-Date(master): Fri Oct  5 23:24:17 CEST 2012 on sn-devel-104

(cherry picked from commit 36ea39edf8dd9ede756debaf9632f3ded2a51abb)
lib/talloc/talloc.c