ols: use ptr to int dereference for SR_T_BOOL

This mad ptr to int casting has to go.
This commit is contained in:
Bert Vermeulen 2013-03-11 15:28:41 +01:00
parent 218e629fa4
commit 9857276261
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}