summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2008-10-28 10:17:50 +0000
committerJean Delvare <jdelvare@suse.de>2008-10-28 10:17:50 +0000
commit98d7d95d3a6d10a00838ad95d892ad9e936dc8ee (patch)
tree515bd3d469fdb6f47d68577ebb8a187436a789a5 /util.h
parentc1666d8deb9f3e20b7b066df2417ce924586a2b8 (diff)
downloaddmidecode-git-98d7d95d3a6d10a00838ad95d892ad9e936dc8ee.tar.gz
When dumping the DMI table to a binary file, truncate the file first.
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 98b49c6..894bd2f 100644
--- a/util.h
+++ b/util.h
@@ -26,4 +26,4 @@
int checksum(const u8 *buf, size_t len);
void *mem_chunk(size_t base, size_t len, const char *devmem);
-int write_dump(size_t base, size_t len, const void *data, const char *dumpfile);
+int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);