diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-01 09:05:53 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-01 09:05:53 -0800 |
| commit | a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e (patch) | |
| tree | 7b73db0203c82500a7b4df4db0ea832935deb822 /src/platform/windows | |
| parent | a693a53e2302fe9cc60c1b5d2bf59c42032b20a3 (diff) | |
| download | nng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.tar.gz nng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.tar.bz2 nng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.zip | |
Fixup a few codacy complaints.
Diffstat (limited to 'src/platform/windows')
| -rw-r--r-- | src/platform/windows/win_udp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/platform/windows/win_udp.c b/src/platform/windows/win_udp.c index e3e5a369..95ff2eb8 100644 --- a/src/platform/windows/win_udp.c +++ b/src/platform/windows/win_udp.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -307,10 +307,9 @@ nni_plat_udp_sockname(nni_plat_udp *udp, nni_sockaddr *sa) { SOCKADDR_STORAGE ss; int sz; - int rv; sz = sizeof(ss); - if ((rv = getsockname(udp->s, (SOCKADDR *) &ss, &sz)) < 0) { + if (getsockname(udp->s, (SOCKADDR *) &ss, &sz) < 0) { return (nni_win_error(GetLastError())); } return (nni_win_sockaddr2nn(sa, &ss)); |
