aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/param
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-10-28 15:42:27 -0700
committerpx4dev <px4@purgatory.org>2012-10-29 21:47:51 -0700
commit4c18aced369b91ce5ba14c471e1677c9a28e8707 (patch)
treef9edc8d49952da7b82f2d62ffa5581aa068b7275 /apps/systemlib/param
parent3d750bc38c2ef5f147475cc8a54f605cbf9f772a (diff)
downloadpx4-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.c6
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;
}