again a bitwise or is required
This commit is contained in:
1 parent
d6b6a1615e
commit
294c25fa60
2 files changed
+2
-2
No files matched your search
@@ -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