diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-08-31 11:15:25 -0700 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-09-08 20:26:19 -0700 |
commit | 5465b8c85efda20a79d23db28fde7ee403aec8f3 (patch) | |
tree | 5016155a7e40645ca1d920c72ef98eb244b98709 /tests/tcp_proxy | |
parent | 49ae93130a38d78cca3dac0bfdd243ff5993989c (diff) | |
download | xrdp-proprietary-5465b8c85efda20a79d23db28fde7ee403aec8f3.tar.gz xrdp-proprietary-5465b8c85efda20a79d23db28fde7ee403aec8f3.zip |
Add socklen_t check with substitution, use socklen_t as needed
Diffstat (limited to 'tests/tcp_proxy')
-rw-r--r-- | tests/tcp_proxy/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/tcp_proxy/main.c b/tests/tcp_proxy/main.c index 3a62c98c..5ea53f5f 100644 --- a/tests/tcp_proxy/main.c +++ b/tests/tcp_proxy/main.c @@ -121,7 +121,7 @@ g_tcp_socket(void) { int rv; int option_value; - unsigned int option_len; + socklen_t option_len; rv = (int)socket(AF_INET, SOCK_STREAM, 0); if (rv < 0) @@ -336,9 +336,7 @@ static int APP_CC g_tcp_socket_ok(int sck) { int opt; - unsigned int opt_len; - - opt_len = sizeof(opt); + socklen_t opt_len = sizeof(opt); if (getsockopt(sck, SOL_SOCKET, SO_ERROR, (char *)(&opt), &opt_len) == 0) { |