Browse Source

config: conflict with v5_0 (develop) branch, opt_algorithm was changed from a pointer.

djm34
Noel Maersk 11 years ago
parent
commit
6228694100
  1. 4
      config_parser.c

4
config_parser.c

@ -688,7 +688,7 @@ void load_default_profile()
//apply default settings //apply default settings
void apply_defaults() void apply_defaults()
{ {
set_algorithm(opt_algorithm, default_profile.algorithm.name); set_algorithm(&opt_algorithm, default_profile.algorithm.name);
if(!empty_string(default_profile.devices)) if(!empty_string(default_profile.devices))
set_devices((char *)default_profile.devices); set_devices((char *)default_profile.devices);
@ -1283,7 +1283,7 @@ void write_config(const char *filename)
else else
{ {
//save algorithm name //save algorithm name
if(json_object_set(config, "algorithm", json_string(opt_algorithm->name)) == -1) if(json_object_set(config, "algorithm", json_string(opt_algorithm.name)) == -1)
{ {
applog(LOG_ERR, "Error: config_parser::write_config():\n json_object_set() failed on algorithm"); applog(LOG_ERR, "Error: config_parser::write_config():\n json_object_set() failed on algorithm");
return; return;

Loading…
Cancel
Save