Skip to content

Commit

Permalink
Transplant some code from parse_conf.c to res.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent e603344 commit 6d4e8c8
Show file tree
Hide file tree
Showing 5 changed files with 1,141 additions and 1,146 deletions.
3 changes: 1 addition & 2 deletions src/dird/dird_conf.c
Expand Up @@ -2876,7 +2876,6 @@ static void parse_config_cb(LEX *lc, RES_ITEM *item, int index, int pass)
*/
static void print_config_cb(RES_ITEM *items, int i, POOL_MEM &cfg_str)
{
bool print_item = false;
POOL_MEM temp;

switch (items[i].type) {
Expand Down Expand Up @@ -3004,7 +3003,7 @@ static void print_config_cb(RES_ITEM *items, int i, POOL_MEM &cfg_str)
break;
}
case CFG_TYPE_LEVEL: {
int32_t level = *(items[i].i32value);
uint32_t level = *(items[i].ui32value);

if (level) {
for (int32_t j = 0; joblevels[j].level_name; j++) {
Expand Down
4 changes: 2 additions & 2 deletions src/dird/dird_conf.h
Expand Up @@ -100,8 +100,8 @@ enum {
*/
struct s_jl {
const char *level_name; /* level keyword */
int32_t level; /* level */
int32_t job_type; /* JobType permitting this level */
uint32_t level; /* level */
int32_t job_type; /* JobType permitting this level */
};

/*
Expand Down

0 comments on commit 6d4e8c8

Please sign in to comment.