talloc: Convert error cecking macros into fns
authorSimo Sorce <idra@samba.org>
Fri, 5 Oct 2012 14:32:32 +0000 (10:32 -0400)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:14:07 +0000 (22:14 +0100)
commit856220d329f1b58a06c0dcb13acf6cfe9c4e69fc
tree063693330cdc824c7fde57fcf758e16192635349
parent07ca908935517e94f26ec8b4ec6e5811002b9bfa
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