diff options
author | David Sommerseth <davids@redhat.com> | 2010-08-03 10:30:23 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2010-08-03 10:30:23 +0200 |
commit | b80e65903258d71ac7be0f0775db15aa096a4b54 (patch) | |
tree | b21b10b5a86f96b98312b7d8daf3ab3dd5c0cce2 /python-ethtool/etherinfo.h | |
parent | 19be403f729d3064259ca17e57ef24a1cc2ff81b (diff) | |
download | python-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.tar.gz python-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.tar.xz python-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.zip |
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 <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo.h')
-rw-r--r-- | python-ethtool/etherinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 *); |