mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 06:50:10 +01: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.
(cherry picked from commit 0d6c35a6d9)
This commit is contained in:
parent
709b497938
commit
f07c135c42
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