Skip to content

Question:blobmsg_add_u64() #3

@zhao-wuji-ahh

Description

@zhao-wuji-ahh

I want to know why the input parameters of the following functions are unsigned, why are they treated as signed?Could somebody help me?

blobmsg_add_u64(struct blob_buf *buf, const char *name, uint64_t val)
{
val = cpu_to_be64(val);
return blobmsg_add_field(buf, BLOBMSG_TYPE_INT64, name, &val, 8);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions