diff options
author | Günther Deschner <gd@samba.org> | 2008-11-21 11:13:42 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-11-26 10:13:34 +0100 |
commit | 2a0f88fe399890b71556f178d63a6311419825e3 (patch) | |
tree | 956dece27a57117756d40f2958f9abe97e633547 /source/nsswitch/pam_winbind.h | |
parent | 369fbe89e5dd71dc4760fe25ea30dbd3157cd27a (diff) | |
download | samba-2a0f88fe399890b71556f178d63a6311419825e3.tar.gz samba-2a0f88fe399890b71556f178d63a6311419825e3.tar.xz samba-2a0f88fe399890b71556f178d63a6311419825e3.zip |
pam_winbind: convert to use talloc.
Guenther
(cherry picked from commit 76be70a7190327f1bcd2ea240591a139830d580f)
Diffstat (limited to 'source/nsswitch/pam_winbind.h')
-rw-r--r-- | source/nsswitch/pam_winbind.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/nsswitch/pam_winbind.h b/source/nsswitch/pam_winbind.h index e99c8abe531..b79b3738636 100644 --- a/source/nsswitch/pam_winbind.h +++ b/source/nsswitch/pam_winbind.h @@ -7,6 +7,7 @@ #include "lib/replace/replace.h" #include "system/syslog.h" #include "system/time.h" +#include <talloc.h> #include "localedir.h" #define MODULE_NAME "pam_winbind" @@ -222,3 +223,8 @@ struct pwb_context { dictionary *dict; uint32_t ctrl; }; + +#define TALLOC_FREE(ctx) do { if ((ctx) != NULL) {talloc_free(ctx); ctx=NULL;} } while(0) +#define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) +#define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) + |