mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
param_shmem: rename exit to do_exit
This commit is contained in:
@@ -943,14 +943,14 @@ param_save_default(void)
|
|||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
PX4_ERR("failed to open param file: %s", filename);
|
PX4_ERR("failed to open param file: %s", filename);
|
||||||
goto exit;
|
goto do_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = param_export(fd, false);
|
res = param_export(fd, false);
|
||||||
|
|
||||||
if (res != OK) {
|
if (res != OK) {
|
||||||
PX4_ERR("failed to write parameters to file: %s", filename);
|
PX4_ERR("failed to write parameters to file: %s", filename);
|
||||||
goto exit;
|
goto do_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
PARAM_CLOSE(fd);
|
PARAM_CLOSE(fd);
|
||||||
@@ -958,7 +958,7 @@ param_save_default(void)
|
|||||||
|
|
||||||
fd = -1;
|
fd = -1;
|
||||||
|
|
||||||
exit:
|
do_exit:
|
||||||
|
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user