File: gcc-warning-fixes

package info (click to toggle)
python-ethtool 0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: ansic: 1,770; python: 1,519; makefile: 21; sh: 16
file content (27 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Fixing GCC5 warnings
Index: python-ethtool-0.14/python-ethtool/etherinfo.h
===================================================================
--- python-ethtool-0.14.orig/python-ethtool/etherinfo.h
+++ python-ethtool-0.14/python-ethtool/etherinfo.h
@@ -24,7 +24,7 @@ int get_etherinfo_link(PyEtherInfo *data
 PyObject * get_etherinfo_address(PyEtherInfo *self, nlQuery query);
 
 int open_netlink(PyEtherInfo *);
-struct nl_sock * get_nlc();
+struct nl_sock * get_nlc(void);
 void close_netlink(PyEtherInfo *);
 
 #endif
Index: python-ethtool-0.14/python-ethtool/netlink.c
===================================================================
--- python-ethtool-0.14.orig/python-ethtool/netlink.c
+++ python-ethtool-0.14/python-ethtool/netlink.c
@@ -88,7 +88,7 @@ int open_netlink(PyEtherInfo *ethi)
  *
  * @returns Returns a pointer to a NETLINK connection libnl functions can use
  */
-struct nl_sock * get_nlc()
+struct nl_sock * get_nlc(void)
 {
     assert(nlconnection);
     return nlconnection;