[PATCH] ifupdown: header file correction
- From: Daniel Gnoutcheff <daniel gnoutcheff name>
- To: networkmanager-list gnome org
- Subject: [PATCH] ifupdown: header file correction
- Date: Mon, 2 Aug 2010 20:25:36 -0400
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.
---
.../plugins/ifupdown/nm-ifupdown-connection.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/system-settings/plugins/ifupdown/nm-ifupdown-connection.h b/system-settings/plugins/ifupdown/nm-ifupdown-connection.h
index 4eb20e5..2aa74df 100644
--- a/system-settings/plugins/ifupdown/nm-ifupdown-connection.h
+++ b/system-settings/plugins/ifupdown/nm-ifupdown-connection.h
@@ -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);
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]