mirror of git://git.sysmocom.de/ofono
network: Avoid shadowing of strength variable
This commit is contained in:
parent
82a1f62994
commit
f20e7e9b3d
|
@ -1539,12 +1539,12 @@ void ofono_netreg_strength_notify(struct ofono_netreg *netreg, int strength)
|
|||
|
||||
if (strength != -1) {
|
||||
const char *path = __ofono_atom_get_path(netreg->atom);
|
||||
unsigned char strength = netreg->signal_strength;
|
||||
unsigned char strength_byte = netreg->signal_strength;
|
||||
|
||||
ofono_dbus_signal_property_changed(conn, path,
|
||||
OFONO_NETWORK_REGISTRATION_INTERFACE,
|
||||
"Strength", DBUS_TYPE_BYTE,
|
||||
&strength);
|
||||
&strength_byte);
|
||||
}
|
||||
|
||||
modem = __ofono_atom_get_modem(netreg->atom);
|
||||
|
|
Loading…
Reference in New Issue