From 16fca542d7f3b05f3d97cdab34c5f1907bd0a170 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 8 Apr 2008 19:54:57 +0200 Subject: [PATCH] Move is_valid_policy_hnd() out of net. Guenther (This used to be commit aae4d91e726ef8dcad173cdd1d6f719d94462948) --- source3/lib/util.c | 8 ++++++++ source3/utils/net_util.c | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source3/lib/util.c b/source3/lib/util.c index 00062b82a9d..b52cc692a2b 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3367,3 +3367,11 @@ NTSTATUS split_ntfs_stream_name(TALLOC_CTX *mem_ctx, const char *fname, } return NT_STATUS_OK; } + +bool is_valid_policy_hnd(const POLICY_HND *hnd) +{ + POLICY_HND tmp; + ZERO_STRUCT(tmp); + return (memcmp(&tmp, hnd, sizeof(tmp)) != 0); +} + diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c index c08eae33375..f844992d562 100644 --- a/source3/utils/net_util.c +++ b/source3/utils/net_util.c @@ -21,13 +21,6 @@ #include "includes.h" #include "utils/net.h" -bool is_valid_policy_hnd(const POLICY_HND *hnd) -{ - POLICY_HND tmp; - ZERO_STRUCT(tmp); - return (memcmp(&tmp, hnd, sizeof(tmp)) != 0); -} - NTSTATUS net_rpc_lookup_name(TALLOC_CTX *mem_ctx, struct cli_state *cli, const char *name, const char **ret_domain, const char **ret_name, DOM_SID *ret_sid, -- 2.34.1