summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-01-23 17:29:21 -0800
committerTim Prouty <tprouty@samba.org>2009-01-23 17:29:21 -0800
commitd629ba480b7cd7344d842069f18fd07f088c4f2f (patch)
tree3060a073babfa0933e0106288e7719331b75d28c /nsswitch
parent0998d172dbeb5f9d7198bbea9ee9124c0558f41b (diff)
downloadsamba-d629ba480b7cd7344d842069f18fd07f088c4f2f.tar.gz
samba-d629ba480b7cd7344d842069f18fd07f088c4f2f.tar.bz2
samba-d629ba480b7cd7344d842069f18fd07f088c4f2f.zip
talloc: Change the two other definitions of TALLOC_FREE to match the primary version
Eventually these two other definitions should be removed and all of the TALLOC macros should live in the same header. Until then, this patch eliminates some build warnings.
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h
index d21fc04a78..0395a1fd5b 100644
--- a/nsswitch/pam_winbind.h
+++ b/nsswitch/pam_winbind.h
@@ -171,6 +171,6 @@ struct pwb_context {
uint32_t ctrl;
};
-#define TALLOC_FREE(ctx) do { if ((ctx) != NULL) {talloc_free(ctx); ctx=NULL;} } while(0)
+#define TALLOC_FREE(ctx) do { 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)