mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix libbbf_api warning
This commit is contained in:
parent
e73024d706
commit
301cbd0bed
1 changed files with 2 additions and 4 deletions
|
|
@ -1814,7 +1814,7 @@ static int enabled_notify_check_obj(DMOBJECT_ARGS)
|
||||||
|
|
||||||
static int enabled_notify_check_param(DMPARAM_ARGS)
|
static int enabled_notify_check_param(DMPARAM_ARGS)
|
||||||
{
|
{
|
||||||
char *refparam, *stype, *notif = NULL, *value = "";
|
char *refparam, *notif = NULL, *value = "";
|
||||||
|
|
||||||
dmastrcat(&refparam, node->current_object, lastname);
|
dmastrcat(&refparam, node->current_object, lastname);
|
||||||
if ((notif = check_parameter_forced_notification(refparam)) == NULL)
|
if ((notif = check_parameter_forced_notification(refparam)) == NULL)
|
||||||
|
|
@ -1825,10 +1825,8 @@ static int enabled_notify_check_param(DMPARAM_ARGS)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
(get_cmd)(refparam, dmctx, data, instance, &value);
|
(get_cmd)(refparam, dmctx, data, instance, &value);
|
||||||
if (notif[0] == '1' || notif[0] == '2' || notif[0] == '4' || notif[0] == '6') {
|
if (notif[0] == '1' || notif[0] == '2' || notif[0] == '4' || notif[0] == '6')
|
||||||
stype = DMT_TYPE[type];
|
|
||||||
add_list_parameter(dmctx, refparam, value, DMT_TYPE[type], notif);
|
add_list_parameter(dmctx, refparam, value, DMT_TYPE[type], notif);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue