aboutsummaryrefslogtreecommitdiffstats
path: root/icemulti
diff options
context:
space:
mode:
authorRoland Lutz <rlutz@hedmen.org>2017-07-11 18:20:18 +0200
committerRoland Lutz <rlutz@hedmen.org>2017-09-04 20:10:26 +0200
commit4cb0dcbffafeace7f0ed56ba813bbed4df8a1f30 (patch)
tree4ab620ae5c8c17ea80fa93ead03c75c8c645cd2c /icemulti
parenta96d1fffdc371bad3bc81172d8663e0a5a902945 (diff)
downloadicestorm-4cb0dcbffafeace7f0ed56ba813bbed4df8a1f30.tar.gz
icestorm-4cb0dcbffafeace7f0ed56ba813bbed4df8a1f30.tar.bz2
icestorm-4cb0dcbffafeace7f0ed56ba813bbed4df8a1f30.zip
icemulti: Make function `write_header' global
Diffstat (limited to 'icemulti')
-rw-r--r--icemulti/icemulti.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/icemulti/icemulti.cc b/icemulti/icemulti.cc
index 143d0d9..d73ef0c 100644
--- a/icemulti/icemulti.cc
+++ b/icemulti/icemulti.cc
@@ -124,10 +124,10 @@ void Image::write(std::ostream &ofs, uint32_t &file_offset)
class Header {
public:
Image const *image;
- void write(std::ostream &ofs, uint32_t &file_offset, bool coldboot);
};
-void Header::write(std::ostream &ofs, uint32_t &file_offset, bool coldboot)
+static void write_header(std::ostream &ofs, uint32_t &file_offset,
+ Image const *image, bool coldboot)
{
// Preamble
write_byte(ofs, file_offset, 0x7e);
@@ -296,7 +296,7 @@ int main(int argc, char **argv)
for (int i=0; i<NUM_HEADERS; i++)
{
pad_to(*osp, file_offset, i * HEADER_SIZE);
- headers[i].write(*osp, file_offset, i == 0 && coldboot);
+ write_header(*osp, file_offset, headers[i].image, i == 0 && coldboot);
}
for (int i=0; i<image_count; i++)
{