diff options
author | Günther Deschner <gd@samba.org> | 2008-08-14 16:53:51 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-10 15:37:35 +0200 |
commit | 3bbffb96646bda732c21c7c418e80ddc63f16de4 (patch) | |
tree | def06d1777bf99f63674cd4e58d275def4bf3023 /source3/nsswitch/pam_winbind.h | |
parent | 65dc0c3e2fa2b557d1542a14641381a3d1973831 (diff) | |
download | samba-3bbffb96646bda732c21c7c418e80ddc63f16de4.tar.gz samba-3bbffb96646bda732c21c7c418e80ddc63f16de4.tar.bz2 samba-3bbffb96646bda732c21c7c418e80ddc63f16de4.zip |
pam_winbind: convert to use talloc.
Guenther
Diffstat (limited to 'source3/nsswitch/pam_winbind.h')
-rw-r--r-- | source3/nsswitch/pam_winbind.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.h b/source3/nsswitch/pam_winbind.h index 6dba127cdc..425471d0d6 100644 --- a/source3/nsswitch/pam_winbind.h +++ b/source3/nsswitch/pam_winbind.h @@ -7,6 +7,7 @@ #include "../lib/replace/replace.h" #include "system/syslog.h" #include "system/time.h" +#include <talloc.h> #define MODULE_NAME "pam_winbind" #define PAM_SM_AUTH @@ -209,3 +210,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) + |