Move is_valid_policy_hnd() out of net.
authorGünther Deschner <gd@samba.org>
Tue, 8 Apr 2008 17:54:57 +0000 (19:54 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 8 Apr 2008 17:54:57 +0000 (19:54 +0200)
Guenther

source/lib/util.c
source/utils/net_util.c

index 00062b82a9d257f45ead64768a256c8b6cd2cfc1..b52cc692a2b71c23fb783aefa14a19ff8ad01a4a 100644 (file)
@@ -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);
+}
+
index c08eae3337514ee7519f78af540ff06ff3bbc8dc..f844992d5622071a1723c7cd54a3e39318850227 100644 (file)
 #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,