From: Volker Lendecke Date: Tue, 3 Jan 2023 18:14:24 +0000 (+0100) Subject: lib: Move tab_depth() to reg_parse_prs.c X-Git-Tag: talloc-2.4.0~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ee474d9fd180c43f5344b81b6ba0b2fc09f756e;p=thirdparty%2Fsamba.git lib: Move tab_depth() to reg_parse_prs.c Wow, I did not know we still use prs_struct... Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/proto.h b/source3/include/proto.h index df2240c5f48..8d82cf77735 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -335,7 +335,6 @@ void set_remote_arch(enum remote_arch_types type); enum remote_arch_types get_remote_arch(void); bool remote_arch_cache_update(const struct GUID *client_guid); bool remote_arch_cache_delete(const struct GUID *client_guid); -const char *tab_depth(int level, int depth); int str_checksum(const char *s); void zero_free(void *p, size_t size); int set_maxfiles(int requested_max); diff --git a/source3/lib/util.c b/source3/lib/util.c index b1f2ccf55dd..83707b31e38 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1235,13 +1235,6 @@ bool remote_arch_cache_delete(const struct GUID *client_guid) return true; } -const char *tab_depth(int level, int depth) -{ - if( CHECK_DEBUGLVL(level) ) { - dbgtext("%*s", depth*4, ""); - } - return ""; -} /***************************************************************************** Provide a checksum on a string diff --git a/source3/registry/reg_parse_prs.c b/source3/registry/reg_parse_prs.c index feec7cb2e48..b608a8d9fdc 100644 --- a/source3/registry/reg_parse_prs.c +++ b/source3/registry/reg_parse_prs.c @@ -27,6 +27,14 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_PARSE +static const char *tab_depth(int level, int depth) +{ + if( CHECK_DEBUGLVL(level) ) { + dbgtext("%*s", depth*4, ""); + } + return ""; +} + /******************************************************************* Debug output for parsing info