diff options
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/libndr.h | 2 | ||||
-rw-r--r-- | librpc/ndr/uuid.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index c0a82b4ad9..1a4d2a1fbc 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -556,7 +556,7 @@ enum ndr_err_code ndr_pull_policy_handle(struct ndr_pull *ndr, int ndr_flags, st enum ndr_err_code ndr_push_policy_handle(struct ndr_push *ndr, int ndr_flags, const struct policy_handle *r); void ndr_print_policy_handle(struct ndr_print *ndr, const char *name, const struct policy_handle *r); bool ndr_policy_handle_empty(const struct policy_handle *h); -bool is_valid_policy_hnd(const struct policy_handle *hnd); +#define is_valid_policy_hnd(hnd) (!ndr_policy_handle_empty(hnd)) bool ndr_policy_handle_equal(const struct policy_handle *hnd1, const struct policy_handle *hnd2); diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c index f440505873..b1436f73cb 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -336,11 +336,6 @@ _PUBLIC_ bool ndr_policy_handle_empty(const struct policy_handle *h) return (h->handle_type == 0 && GUID_all_zero(&h->uuid)); } -_PUBLIC_ bool is_valid_policy_hnd(const struct policy_handle *hnd) -{ - return !ndr_policy_handle_empty(hnd); -} - _PUBLIC_ bool ndr_policy_handle_equal(const struct policy_handle *hnd1, const struct policy_handle *hnd2) { |