static void smbios_build_type_0_fields(const char *t)

{

    char buf[1024];

    unsigned char major, minor;



    if (get_param_value(buf, sizeof(buf), "vendor", t))

        smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "version", t))

        smbios_add_field(0, offsetof(struct smbios_type_0, bios_version_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "date", t))

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     bios_release_date_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "release", t)) {

        sscanf(buf, "%hhu.%hhu", &major, &minor);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_major_release),

                         &major, 1);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_minor_release),

                         &minor, 1);

    }

}

static void smbios_build_type_0_fields(const char *t)

{

    char buf[1024];

    unsigned char major, minor;



    if (get_param_value(buf, sizeof(buf), "vendor", t))

        smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "version", t))

        smbios_add_field(0, offsetof(struct smbios_type_0, bios_version_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "date", t))

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     bios_release_date_str),

                         buf, strlen(buf) + 1);

    if (get_param_value(buf, sizeof(buf), "release", t)) {

        sscanf(buf, "%hhu.%hhu", &major, &minor);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_major_release),

                         &major, 1);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_minor_release),

                         &minor, 1);

    }

}

static void FUNC_0(const char *VAR_0)

{

    char VAR_1[1024];

    unsigned char VAR_2, VAR_3;



    if (get_param_value(VAR_1, sizeof(VAR_1), "vendor", VAR_0))

        smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str),

                         VAR_1, strlen(VAR_1) + 1);

    if (get_param_value(VAR_1, sizeof(VAR_1), "version", VAR_0))

        smbios_add_field(0, offsetof(struct smbios_type_0, bios_version_str),

                         VAR_1, strlen(VAR_1) + 1);

    if (get_param_value(VAR_1, sizeof(VAR_1), "date", VAR_0))

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     bios_release_date_str),

                         VAR_1, strlen(VAR_1) + 1);

    if (get_param_value(VAR_1, sizeof(VAR_1), "release", VAR_0)) {

        sscanf(VAR_1, "%hhu.%hhu", &VAR_2, &VAR_3);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_major_release),

                         &VAR_2, 1);

        smbios_add_field(0, offsetof(struct smbios_type_0,

                                     system_bios_minor_release),

                         &VAR_3, 1);

    }

}

static void FUNC_0(const char *VAR_0)
{ char VAR_1[1024]; unsigned char VAR_2, VAR_3; if (get_param_value(VAR_1, sizeof(VAR_1), "vendor", VAR_0))
smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str),
VAR_1, strlen(VAR_1) + 1); if (get_param_value(VAR_1, sizeof(VAR_1), "version", VAR_0))
smbios_add_field(0, offsetof(struct smbios_type_0, bios_version_str),
VAR_1, strlen(VAR_1) + 1); if (get_param_value(VAR_1, sizeof(VAR_1), "date", VAR_0))
smbios_add_field(0, offsetof(struct smbios_type_0,
bios_release_date_str),
VAR_1, strlen(VAR_1) + 1); if (get_param_value(VAR_1, sizeof(VAR_1), "release", VAR_0)) { sscanf(VAR_1, "%hhu.%hhu", &VAR_2, &VAR_3); smbios_add_field(0, offsetof(struct smbios_type_0,
system_bios_major_release),
&VAR_2, 1); smbios_add_field(0, offsetof(struct smbios_type_0,
system_bios_minor_release),
&VAR_3, 1); } }