mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
core: avoid accessing opaque NMSetting type
Next, NMSetting will be hidden from public headers and become an opaque type. We cannot do typeof(*setting) anymore.
This commit is contained in:
parent
c89ac8f0c7
commit
0d6c35a6d9
1 changed files with 2 additions and 2 deletions
|
|
@ -666,8 +666,8 @@ add_string_val(NMSupplicantConfig *self,
|
|||
display_value, \
|
||||
error) \
|
||||
({ \
|
||||
typeof(*(setting)) *_setting = (setting); \
|
||||
gboolean _success = TRUE; \
|
||||
typeof(setting) _setting = (setting); \
|
||||
gboolean _success = TRUE; \
|
||||
\
|
||||
if (nm_setting_##setting_name##_get_num_##field_plural(_setting)) { \
|
||||
const char _separator = (separator); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue