again a bitwise or is required
This commit is contained in:
@@ -373,7 +373,7 @@ imc_agent_t *imc_agent_create(const char *name,
|
|||||||
.destroy = _destroy,
|
.destroy = _destroy,
|
||||||
},
|
},
|
||||||
.name = name,
|
.name = name,
|
||||||
.type = (vendor_id << 8) | (subtype && 0xff),
|
.type = (vendor_id << 8) | (subtype & 0xff),
|
||||||
.id = id,
|
.id = id,
|
||||||
.connections = linked_list_create(),
|
.connections = linked_list_create(),
|
||||||
.connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
|
.connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
|
||||||
|
|||||||
@@ -513,7 +513,7 @@ imv_agent_t *imv_agent_create(const char *name,
|
|||||||
.destroy = _destroy,
|
.destroy = _destroy,
|
||||||
},
|
},
|
||||||
.name = name,
|
.name = name,
|
||||||
.type = (vendor_id << 8) | (subtype && 0xff),
|
.type = (vendor_id << 8) | (subtype & 0xff),
|
||||||
.id = id,
|
.id = id,
|
||||||
.connections = linked_list_create(),
|
.connections = linked_list_create(),
|
||||||
.connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
|
.connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
|
||||||
|
|||||||
Reference in New Issue
Block a user