X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fstored_conf.c;h=e392d0b3d198ce17f2dcc8e7616f91e276112be6;hb=b22b260eaa7fb9f122523fff0e324dca5904b97f;hp=6d3db5e30ed3c2968979beb1fba81af2bbf79edc;hpb=5386ad776dd0af368a89e135079a93897ef655bf;p=bacula%2Fbacula diff --git a/bacula/src/stored/stored_conf.c b/bacula/src/stored/stored_conf.c index 6d3db5e30e..e392d0b3d1 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -23,9 +23,6 @@ #include "bacula.h" #include "stored.h" -extern int debug_level; - - /* First and last resource ids */ int r_first = R_FIRST; int r_last = R_LAST; @@ -39,7 +36,13 @@ static void store_devtype(LEX *lc, RES_ITEM *item, int index, int pass); /* We build the current resource here statically, * then move it to dynamic memory */ +#if defined(_MSC_VER) +extern "C" { // work around visual compiler mangling variables + URES res_all; +} +#else URES res_all; +#endif int res_all_size = sizeof(res_all); /* Definition of records permitted within each @@ -70,7 +73,7 @@ static RES_ITEM store_items[] = { {"tlskey", store_dir, ITEM(res_store.tls_keyfile), 0, 0, 0}, {"tlsdhfile", store_dir, ITEM(res_store.tls_dhfile), 0, 0, 0}, {"tlsallowedcn", store_alist_str, ITEM(res_store.tls_allowed_cns), 0, 0, 0}, - {NULL, NULL, 0, 0, 0, 0} + {NULL, NULL, {0}, 0, 0, 0} }; @@ -89,7 +92,7 @@ static RES_ITEM dir_items[] = { {"tlskey", store_dir, ITEM(res_dir.tls_keyfile), 0, 0, 0}, {"tlsdhfile", store_dir, ITEM(res_dir.tls_dhfile), 0, 0, 0}, {"tlsallowedcn", store_alist_str, ITEM(res_dir.tls_allowed_cns), 0, 0, 0}, - {NULL, NULL, 0, 0, 0, 0} + {NULL, NULL, {0}, 0, 0, 0} }; /* Device definition */ @@ -146,7 +149,7 @@ static RES_ITEM dev_items[] = { {"writepartcommand", store_strname,ITEM(res_dev.write_part_command), 0, 0, 0}, {"freespacecommand", store_strname,ITEM(res_dev.free_space_command), 0, 0, 0}, {"labeltype", store_label, ITEM(res_dev.label_type), 0, 0, 0}, - {NULL, NULL, 0, 0, 0, 0} + {NULL, NULL, {0}, 0, 0, 0} }; /* Autochanger definition */ @@ -156,7 +159,7 @@ static RES_ITEM changer_items[] = { {"device", store_alist_res, ITEM(res_changer.device), R_DEVICE, ITEM_REQUIRED, 0}, {"changerdevice", store_strname, ITEM(res_changer.changer_name), 0, ITEM_REQUIRED, 0}, {"changercommand", store_strname, ITEM(res_changer.changer_command), 0, ITEM_REQUIRED, 0}, - {NULL, NULL, 0, 0, 0, 0} + {NULL, NULL, {0}, 0, 0, 0} };