summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-10-13 06:19:59 -0400
committer Nathan Woods <npwoods@mess.org>2016-10-13 06:19:59 -0400
commit66c451c66439e89dc7b460e522ddeb3902c4669c (patch)
treec236b792e4b51da38742a20f92d3e412293c15e2 /src
parent604885dfb8950753ed5e4ef101dabee54425b796 (diff)
[Imgtool] More formatting fixes
Diffstat (limited to 'src')
-rw-r--r--src/tools/imgtool/modules/hp48.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/imgtool/modules/hp48.cpp b/src/tools/imgtool/modules/hp48.cpp
index 3ac73ab6922..12b8236d86c 100644
--- a/src/tools/imgtool/modules/hp48.cpp
+++ b/src/tools/imgtool/modules/hp48.cpp
@@ -351,8 +351,8 @@ static imgtoolerr_t hp48_open(imgtool::image *img, imgtool::stream *stream)
}
/* fully load image */
- stream->seek(0, SEEK_SET );
- if ( stream->read(c->data, size ) < size )
+ stream->seek(0, SEEK_SET);
+ if ( stream->read(c->data, size) < size )
{
return IMGTOOLERR_READERROR;
}
@@ -397,8 +397,8 @@ static void hp48_close(imgtool::image *img)
{
/* save image */
pack( c->data, c->data, 2 * c->size );
- c->stream->seek(0, SEEK_SET );
- c->stream->write(c->data, c->size );
+ c->stream->seek(0, SEEK_SET);
+ c->stream->write(c->data, c->size);
}
/* clean up */
@@ -576,7 +576,7 @@ static imgtoolerr_t hp48_readfile(imgtool::partition *part,
return IMGTOOLERR_FILENOTFOUND;
}
pack( buf, p->data + start, size );
- destf->write(buf, bytesize );
+ destf->write(buf, bytesize);
free( buf );
return IMGTOOLERR_SUCCESS;
@@ -622,7 +622,7 @@ static imgtoolerr_t hp48_writefile(imgtool::partition *part,
/* check header */
char head[8];
- sourcef->read(head, 8 );
+ sourcef->read(head, 8);
if ( memcmp( head, hp48_prefix, 7) )
{
return IMGTOOLERR_READERROR;
@@ -649,7 +649,7 @@ static imgtoolerr_t hp48_writefile(imgtool::partition *part,
/* load file */
UINT8* buf = (UINT8*) malloc( filesize );
if ( !buf ) return IMGTOOLERR_NOSPACE;
- sourcef->read(buf, filesize );
+ sourcef->read(buf, filesize);
/* store backup object */
int org = pos;