diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-06-07 15:00:34 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-06-17 18:01:42 -0500 |
commit | 61fbaee1a71b9d01a617fb44a6d80238779acb93 (patch) | |
tree | 4a2466db45ff2ee6fe6ae5d3e4ed8e04b60a2a16 /include/hw | |
parent | 685ee2d940738e771c96de33a3cbd85abfbbb3c5 (diff) | |
download | qemu-61fbaee1a71b9d01a617fb44a6d80238779acb93.zip qemu-61fbaee1a71b9d01a617fb44a6d80238779acb93.tar.gz qemu-61fbaee1a71b9d01a617fb44a6d80238779acb93.tar.bz2 |
smbios: Clean up smbios_add_field() parameters
Having size precede the associated pointer is odd. Swap them, and fix
up the types.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo "ever the optimist" Ersek <lersek@redhat.com>
Message-id: 1370610036-10577-5-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit ebc85e3f724d17530e74df665d1a30fb9b0041b5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/i386/smbios.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/smbios.h b/include/hw/i386/smbios.h index 94e3641..9babeaf 100644 --- a/include/hw/i386/smbios.h +++ b/include/hw/i386/smbios.h @@ -14,7 +14,7 @@ */ int smbios_entry_add(const char *t); -void smbios_add_field(int type, int offset, int len, void *data); +void smbios_add_field(int type, int offset, const void *data, size_t len); uint8_t *smbios_get_table(size_t *length); /* |