]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Replace uint with uint32_t
authorKern Sibbald <kern@sibbald.com>
Tue, 17 Jul 2018 08:14:20 +0000 (10:14 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 17 Jul 2018 08:14:20 +0000 (10:14 +0200)
bacula/src/dird/ua_dotcmds.c
bacula/src/lib/message.c
bacula/src/lib/message.h

index b4f087e1de2844da7877691eb6436ec23c78b4be..ff7cfdf0bbd8b41ccb1c28ff7b1dccd58fdc80be 100644 (file)
@@ -1872,12 +1872,10 @@ static bool typescmd(UAContext *ua, const char *cmd)
 
 static bool tagscmd(UAContext *ua, const char *cmd)
 {
-#ifdef xxx
-   uint i = 0;
+   uint32_t i = 0;
    for (const char *p = debug_get_tag(i++, NULL) ; p ; p = debug_get_tag(i++, NULL)) {
       ua->send_msg("%s\n", p);
    }
-#endif
    return true;
 }
 
index b3c4a0e500568cf9cefe3ebe69aa2efd23450acc..3b7315177a08135009447df5d9a7ed5a4357add4 100644 (file)
@@ -1847,8 +1847,7 @@ static struct debugtags debug_tags[] = {
 
 #define MAX_TAG (sizeof(debug_tags) / sizeof(struct debugtags))
 
-#ifdef xxx   /* Hey  what is unit??? it is not defined on all platforms */
-const char *debug_get_tag(uint pos, const char **desc)
+const char *debug_get_tag(uint32_t pos, const char **desc)
 {
    if (pos < MAX_TAG) {
       if (desc) {
@@ -1858,7 +1857,6 @@ const char *debug_get_tag(uint pos, const char **desc)
    }
    return NULL;
 }
-#endif
 
 /* Allow +-, */
 bool debug_find_tag(const char *tagname, bool add, int64_t *current_level)
index 2e84fb45c73443bac2450f1b9828788bc893b83a..b76f36e1d05958aa6b5325e27e0e160114495867 100644 (file)
@@ -165,7 +165,7 @@ struct MQUEUE_ITEM {
 #define    DT_ASX        (1<<16)                /* used by Alain for personal debugging */
 #define    DT_ALL        (0x7FFF0000)           /* all (up to debug_level 65635, 15 flags available) */
 
-//const char *debug_get_tag(uint pos, const char **desc);
+const char *debug_get_tag(uint32_t pos, const char **desc);
 bool debug_find_tag(const char *tagname, bool add, int64_t *current_level);
 bool debug_parse_tags(const char *options, int64_t *current_level);