lib: Move tab_depth() to reg_parse_prs.c
authorVolker Lendecke <vl@samba.org>
Tue, 3 Jan 2023 18:14:24 +0000 (19:14 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2023 00:28:37 +0000 (00:28 +0000)
Wow, I did not know we still use prs_struct...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/util.c
source3/registry/reg_parse_prs.c

index df2240c5f48aa71d7dc4ff3e5040d434766fa5ef..8d82cf777357c6a16454e6b8fdca90272eb6345c 100644 (file)
@@ -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);
index b1f2ccf55dd303c8939eb3187def72ffadf5a88d..83707b31e384c3c07c8fe0e84cea3a93986c0136 100644 (file)
@@ -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
index feec7cb2e48579fd25ea7c8288015afb0e7b5b92..b608a8d9fdcae889ad4d01d330c603de0a01e933 100644 (file)
 #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