mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 13:20:20 +01:00
ifupdown: fix connection class inheritance
NMIfupdownConnection really is a subclass of NMSysconfigConnection (as declared via the G_DEFINE_TYPE macro in nm-ifconfig-connection.c), but the header incorrectly used NMExportedConnection* in the class and instance structs. We got away with it because NMSysconfigConnection* didn't contain anything other than the stuff inherited from NMExportedConnection*, but it would have caused much trouble if we did add something.
This commit is contained in:
parent
d471a58a97
commit
006377f9d2
1 changed files with 2 additions and 2 deletions
|
|
@ -39,11 +39,11 @@ G_BEGIN_DECLS
|
|||
#define NM_IFUPDOWN_CONNECTION_IFBLOCK "ifblock"
|
||||
|
||||
typedef struct {
|
||||
NMExportedConnection parent;
|
||||
NMSysconfigConnection parent;
|
||||
} NMIfupdownConnection;
|
||||
|
||||
typedef struct {
|
||||
NMExportedConnectionClass parent;
|
||||
NMSysconfigConnectionClass parent;
|
||||
} NMIfupdownConnectionClass;
|
||||
|
||||
GType nm_ifupdown_connection_get_type (void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue