diff options
Diffstat (limited to 'src/tools/imgtool/filteoln.cpp')
-rw-r--r-- | src/tools/imgtool/filteoln.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/imgtool/filteoln.cpp b/src/tools/imgtool/filteoln.cpp index bb589e8fafe..41f11769747 100644 --- a/src/tools/imgtool/filteoln.cpp +++ b/src/tools/imgtool/filteoln.cpp @@ -8,11 +8,12 @@ *****************************************************************************/ -#include <string.h> - #include "imgtool.h" +#include "filter.h" + +#include <cstring> -#define EOLN (CRLF == 1 ? "\r" : (CRLF == 2 ? "\n" : (CRLF == 3 ? "\r\n" : NULL))) +#define EOLN (CRLF == 1 ? "\r" : (CRLF == 2 ? "\n" : (CRLF == 3 ? "\r\n" : nullptr))) @@ -95,7 +96,7 @@ static imgtoolerr_t ascii_writefile(imgtool::partition &partition, const char *f -void filter_eoln_getinfo(uint32_t state, union filterinfo *info) +void filter_eoln_getinfo(uint32_t state, imgtool::filterinfo *info) { switch(state) { |