Skip to content

Commit

Permalink
change fun signature
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 20, 2023
1 parent 659f8eb commit 7781f2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions psutil/arch/freebsd/sys_socks.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ int psutil_gather_unix(int proto, PyObject *py_retlist) {


int
psutil_value_in_seq(PyObject *py_seq, int value) {
psutil_int_in_seq(int value, PyObject *py_seq) {
int inseq;
PyObject *py_value;

Expand Down Expand Up @@ -376,15 +376,15 @@ psutil_net_connections(PyObject* self, PyObject* args) {
goto error;
}

if ((include_v4 = psutil_value_in_seq(py_af_filter, AF_INET)) == -1)
if ((include_v4 = psutil_int_in_seq(AF_INET, py_af_filter)) == -1)
goto error;
if ((include_v6 = psutil_value_in_seq(py_af_filter, AF_INET6)) == -1)
if ((include_v6 = psutil_int_in_seq(AF_INET6, py_af_filter)) == -1)
goto error;
if ((include_unix = psutil_value_in_seq(py_af_filter, AF_UNIX)) == -1)
if ((include_unix = psutil_int_in_seq(AF_UNIX, py_af_filter)) == -1)
goto error;
if ((include_tcp = psutil_value_in_seq(py_type_filter, SOCK_STREAM)) == -1)
if ((include_tcp = psutil_int_in_seq(SOCK_STREAM, py_type_filter)) == -1)
goto error;
if ((include_udp = psutil_value_in_seq(py_type_filter, SOCK_DGRAM)) == -1)
if ((include_udp = psutil_int_in_seq(SOCK_DGRAM, py_type_filter)) == -1)
goto error;

if (psutil_populate_xfiles() != 1)
Expand Down

0 comments on commit 7781f2e

Please sign in to comment.