From ebc85e3f724d17530e74df665d1a30fb9b0041b5 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 7 Jun 2013 15:00:34 +0200 Subject: 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 Reviewed-by: Laszlo "ever the optimist" Ersek Message-id: 1370610036-10577-5-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori --- include/hw/i386/smbios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); /* -- cgit v1.1