Skip to content

Commit e76beb0

Browse files
committed
yappcap.pyx: Resolve some cython warnings.
Resolves 2 warnings when running setup.py: * `FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release!` * `Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.`
1 parent 1de6fed commit e76beb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: yappcap.pyx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: embedsignature=True
1+
#cython: language_level=3, embedsignature=True
22
#distutils: libraries = pcap
33
include "definitions.pxi"
44
from pcap cimport *
@@ -809,7 +809,8 @@ def lib_version():
809809

810810
def findalldevs():
811811
"""Return a list of available PcapInterfaces"""
812-
cdef pcap_if_t *interfaces, *it
812+
cdef pcap_if_t *interfaces
813+
cdef pcap_if_t *it
813814
cdef char errbuf[PCAP_ERRBUF_SIZE]
814815
cdef int res = pcap_findalldevs(&interfaces, errbuf)
815816
cdef list result = list()

0 commit comments

Comments
 (0)