Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
idnode: call idnode_init more early (class registration)
  • Loading branch information
perexg committed Apr 1, 2016
1 parent 7979566 commit 264b4ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/idnode.c
Expand Up @@ -1351,7 +1351,6 @@ idclass_root_register(const idclass_t *idc)
r = RB_INSERT_SORTED(&idrootclasses, idclasses_skel, link, ic_cmp);
if (r) return;
RB_INIT(&idclasses_skel->nodes);
r = idclasses_skel;
SKEL_USED(idclasses_skel);
tvhtrace("idnode", "register root class %s", idc->ic_class);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -1052,6 +1052,7 @@ main(int argc, char **argv)
}

uuid_init();
idnode_init();
config_boot(opt_config, gid, uid);
tcp_server_preinit(opt_ipv6);
http_server_init(opt_bindaddr); // bind to ports only
Expand Down Expand Up @@ -1129,7 +1130,6 @@ main(int argc, char **argv)

/* Initialise configuration */
notify_init();
idnode_init();
spawn_init();
config_init(opt_nobackup == 0);

Expand Down

0 comments on commit 264b4ec

Please sign in to comment.