]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smbios: Use char consistently for the eos member
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:17:15 +0000 (21:17 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 6 Feb 2021 11:18:41 +0000 (19:18 +0800)
At present a few of the structs use u8 instead of char. This is a string,
so char is better. Update them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/smbios.h

index fc69188a8fe28b83ab6cfbfd056dd4ecf4f62fbb..1cbeabf95220e66ba5ea2ed6e8a516ff8bcaa300 100644 (file)
@@ -183,14 +183,14 @@ struct __packed smbios_type32 {
        u16 handle;
        u8 reserved[6];
        u8 boot_status;
-       u8 eos[SMBIOS_STRUCT_EOS_BYTES];
+       char eos[SMBIOS_STRUCT_EOS_BYTES];
 };
 
 struct __packed smbios_type127 {
        u8 type;
        u8 length;
        u16 handle;
-       u8 eos[SMBIOS_STRUCT_EOS_BYTES];
+       char eos[SMBIOS_STRUCT_EOS_BYTES];
 };
 
 struct __packed smbios_header {