summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness/ihex.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sbc_harness/ihex.c')
-rw-r--r--cmd/sbc_harness/ihex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/sbc_harness/ihex.c b/cmd/sbc_harness/ihex.c
index 565ad16..5a7f6d5 100644
--- a/cmd/sbc_harness/ihex.c
+++ b/cmd/sbc_harness/ihex.c
@@ -15,6 +15,7 @@
#include "ihex.h"
LO_IMPLEMENTATION_C(io_writer, struct ihex_decoder, ihex_decoder);
+LO_IMPLEMENTATION_C(io_closer, struct ihex_decoder, ihex_decoder);
enum ihex_record_type {
/* [U]SBA: [Upper] Segment Base Address : SBA = USBA<< 4 */
@@ -223,3 +224,8 @@ size_t_and_error ihex_decoder_writev(struct ihex_decoder *self, const struct iov
}
return ERROR_AND(size_t, total, ERROR_NULL);
}
+
+error ihex_decoder_close(struct ihex_decoder *self) {
+ error_cleanup(&self->sticky_err);
+ return ERROR_NULL;
+}