diff options
author | px4dev <px4@purgatory.org> | 2012-10-28 15:42:27 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-29 21:47:51 -0700 |
commit | 4c18aced369b91ce5ba14c471e1677c9a28e8707 (patch) | |
tree | f9edc8d49952da7b82f2d62ffa5581aa068b7275 /apps/systemlib/param | |
parent | 3d750bc38c2ef5f147475cc8a54f605cbf9f772a (diff) | |
download | px4-firmware-4c18aced369b91ce5ba14c471e1677c9a28e8707.tar.gz px4-firmware-4c18aced369b91ce5ba14c471e1677c9a28e8707.tar.bz2 px4-firmware-4c18aced369b91ce5ba14c471e1677c9a28e8707.zip |
BSON coder unit tests, fixes arising from test failures.
Diffstat (limited to 'apps/systemlib/param')
-rw-r--r-- | apps/systemlib/param/param.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/systemlib/param/param.c b/apps/systemlib/param/param.c index eeb867f11..44f05047a 100644 --- a/apps/systemlib/param/param.c +++ b/apps/systemlib/param/param.c @@ -452,7 +452,7 @@ param_reset(param_t param) /* if we found one, erase it */ if (s != NULL) { - int pos = utarry_eltidx(param_values, s); + int pos = utarray_eltidx(param_values, s); utarray_erase(param_values, pos, 1); } } @@ -489,7 +489,7 @@ param_export(int fd, bool only_unsaved) param_lock(); - bson_encoder_init(&encoder, fd); + bson_encoder_init_file(&encoder, fd); /* no modified parameters -> we are done */ if (param_values == NULL) { @@ -680,7 +680,7 @@ param_import_internal(int fd, bool mark_saved) int result = -1; struct param_import_state state; - if (bson_decoder_init(&decoder, fd, param_import_callback, &state)) { + if (bson_decoder_init_file(&decoder, fd, param_import_callback, &state)) { debug("decoder init failed"); goto out; } |