diff options
Diffstat (limited to 'src/tools/imgtool/filteoln.cpp')
-rw-r--r-- | src/tools/imgtool/filteoln.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/imgtool/filteoln.cpp b/src/tools/imgtool/filteoln.cpp index 30fb52ed429..457ac89aee6 100644 --- a/src/tools/imgtool/filteoln.cpp +++ b/src/tools/imgtool/filteoln.cpp @@ -58,14 +58,14 @@ static imgtoolerr_t ascii_readfile(imgtool_partition *partition, const char *fil imgtoolerr_t err; imgtool_stream *mem_stream; - mem_stream = stream_open_mem(NULL, 0); + mem_stream = stream_open_mem(nullptr, 0); if (!mem_stream) { err = IMGTOOLERR_OUTOFMEMORY; goto done; } - err = imgtool_partition_read_file(partition, filename, fork, mem_stream, NULL); + err = imgtool_partition_read_file(partition, filename, fork, mem_stream, nullptr); if (err) goto done; @@ -85,11 +85,11 @@ done: static imgtoolerr_t ascii_writefile(imgtool_partition *partition, const char *filename, const char *fork, imgtool_stream *sourcef, option_resolution *opts) { imgtoolerr_t err; - imgtool_stream *mem_stream = NULL; + imgtool_stream *mem_stream = nullptr; const char *eoln; /* create a stream */ - mem_stream = stream_open_mem(NULL, 0); + mem_stream = stream_open_mem(nullptr, 0); if (!mem_stream) { err = IMGTOOLERR_OUTOFMEMORY; @@ -103,7 +103,7 @@ static imgtoolerr_t ascii_writefile(imgtool_partition *partition, const char *fi goto done; stream_seek(mem_stream, SEEK_SET, 0); - err = imgtool_partition_write_file(partition, filename, fork, mem_stream, opts, NULL); + err = imgtool_partition_write_file(partition, filename, fork, mem_stream, opts, nullptr); if (err) goto done; |