From b80e65903258d71ac7be0f0775db15aa096a4b54 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 3 Aug 2010 10:30:23 +0200 Subject: Get rid of not needed struct wrapping The struct nl_handle was wrapped inside struct _nlconnection. This is really not needed if open_netlink() and close_netlink() functions uses "pointer's pointer" (struct nl_handle **) instead. Removes also the need to declare a static struct _nlconnection, as the global nlconnection variable can now be a pointer as well. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python-ethtool/etherinfo.h') diff --git a/python-ethtool/etherinfo.h b/python-ethtool/etherinfo.h index 833e4e8..db368db 100644 --- a/python-ethtool/etherinfo.h +++ b/python-ethtool/etherinfo.h @@ -26,7 +26,7 @@ typedef enum {NLQRY_LINK, NLQRY_ADDR} nlQuery; /**< Supported query types in the etherinfo code */ -int get_etherinfo(struct etherinfo *ethinf, struct _nlconnection *nlc, nlQuery query); +int get_etherinfo(struct etherinfo *ethinf, struct nl_handle *nlc, nlQuery query); void free_etherinfo(struct etherinfo *ptr); void dump_etherinfo(FILE *, struct etherinfo *); -- cgit