summaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-06-07 15:00:34 +0200
committerMichael Roth <mdroth@linux.vnet.ibm.com>2013-06-17 18:01:42 -0500
commit61fbaee1a71b9d01a617fb44a6d80238779acb93 (patch)
tree4a2466db45ff2ee6fe6ae5d3e4ed8e04b60a2a16 /arch_init.c
parent685ee2d940738e771c96de33a3cbd85abfbbb3c5 (diff)
downloadqemu-61fbaee1a71b9d01a617fb44a6d80238779acb93.tar.gz
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 'arch_init.c')
-rw-r--r--arch_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch_init.c b/arch_init.c
index e2559f5575..522caeb61c 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1029,7 +1029,7 @@ int qemu_uuid_parse(const char *str, uint8_t *uuid)
return -1;
}
#ifdef TARGET_I386
- smbios_add_field(1, offsetof(struct smbios_type_1, uuid), 16, uuid);
+ smbios_add_field(1, offsetof(struct smbios_type_1, uuid), uuid, 16);
#endif
return 0;
}