ols: use ptr to int dereference for SR_T_BOOL
This mad ptr to int casting has to go.
This commit is contained in:
parent
218e629fa4
commit
9857276261
|
@ -293,7 +293,7 @@ static int config_set(int id, const void *value, const struct sr_dev_inst *sdi)
|
|||
ret = SR_OK;
|
||||
break;
|
||||
case SR_CONF_RLE:
|
||||
if (GPOINTER_TO_INT(value)) {
|
||||
if (*(int *)value) {
|
||||
sr_info("Enabling RLE.");
|
||||
devc->flag_reg |= FLAG_RLE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue