Revision 4f3669ea

b/block/vdi.c
119 119
#if !defined(CONFIG_UUID)
120 120
void uuid_generate(uuid_t out)
121 121
{
122
    memset(out, 0, sizeof(out));
122
    memset(out, 0, sizeof(uuid_t));
123 123
}
124 124

  
125 125
int uuid_is_null(const uuid_t uu)
126 126
{
127 127
    uuid_t null_uuid = { 0 };
128
    return memcmp(uu, null_uuid, sizeof(uu)) == 0;
128
    return memcmp(uu, null_uuid, sizeof(uuid_t)) == 0;
129 129
}
130 130

  
131 131
void uuid_unparse(const uuid_t uu, char *out)

Also available in: Unified diff