summaryrefslogtreecommitdiffhomepage
path: root/src/socket
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 11:58:03 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:25 -0400
commitc713d8d019f7b0f9ed4a60912f440aca991d43c1 (patch)
tree949b58b49bc5087768cc8dbc3f65513b022ae5c5 /src/socket
parenta7c8d71acbd60c4b2f3ba63c47eba9c74fa4270d (diff)
downloadntapi-c713d8d019f7b0f9ed4a60912f440aca991d43c1.tar.bz2
ntapi-c713d8d019f7b0f9ed4a60912f440aca991d43c1.tar.xz
code maintenance: mark unused parameters.
Diffstat (limited to 'src/socket')
-rw-r--r--src/socket/ntapi_sc_accept.c3
-rw-r--r--src/socket/ntapi_sc_bind_v1.c2
-rw-r--r--src/socket/ntapi_sc_bind_v2.c3
-rw-r--r--src/socket/ntapi_sc_connect_v1.c2
-rw-r--r--src/socket/ntapi_sc_connect_v2.c2
-rw-r--r--src/socket/ntapi_sc_wait.c2
6 files changed, 14 insertions, 0 deletions
diff --git a/src/socket/ntapi_sc_accept.c b/src/socket/ntapi_sc_accept.c
index fa61603..3390616 100644
--- a/src/socket/ntapi_sc_accept.c
+++ b/src/socket/ntapi_sc_accept.c
@@ -34,6 +34,9 @@ int32_t __cdecl __ntapi_sc_accept(
_addr_memcpy * src;
_addr_memcpy * dst;
+ (void)afdflags;
+ (void)tdiflags;
+
iosb = iosb ? iosb : &siosb;
/* establish kernel connection */
diff --git a/src/socket/ntapi_sc_bind_v1.c b/src/socket/ntapi_sc_bind_v1.c
index e0bfc6a..bf07a60 100644
--- a/src/socket/ntapi_sc_bind_v1.c
+++ b/src/socket/ntapi_sc_bind_v1.c
@@ -46,6 +46,8 @@ int32_t __cdecl __ntapi_sc_bind_v1(
_addr_memcpy * src;
_addr_memcpy * dst;
+ (void)addrlen;
+
iosb = iosb ? iosb : &siosb;
/* service_flags */
diff --git a/src/socket/ntapi_sc_bind_v2.c b/src/socket/ntapi_sc_bind_v2.c
index 36ea98f..92d14b6 100644
--- a/src/socket/ntapi_sc_bind_v2.c
+++ b/src/socket/ntapi_sc_bind_v2.c
@@ -43,6 +43,9 @@ int32_t __cdecl __ntapi_sc_bind_v2(
_addr_memcpy * src;
_addr_memcpy * dst;
+ (void)addrlen;
+ (void)service_flags;
+
iosb = iosb ? iosb : &siosb;
/* request */
diff --git a/src/socket/ntapi_sc_connect_v1.c b/src/socket/ntapi_sc_connect_v1.c
index ef7f31b..4dcd3c1 100644
--- a/src/socket/ntapi_sc_connect_v1.c
+++ b/src/socket/ntapi_sc_connect_v1.c
@@ -47,6 +47,8 @@ int32_t __cdecl __ntapi_sc_connect_v1(
_addr_memcpy * src;
_addr_memcpy * dst;
+ (void)addrlen;
+
iosb = iosb ? iosb : &siosb;
/* service_flags */
diff --git a/src/socket/ntapi_sc_connect_v2.c b/src/socket/ntapi_sc_connect_v2.c
index 5d839f2..42fd213 100644
--- a/src/socket/ntapi_sc_connect_v2.c
+++ b/src/socket/ntapi_sc_connect_v2.c
@@ -38,6 +38,8 @@ int32_t __cdecl __ntapi_sc_connect_v2(
_addr_memcpy * src;
_addr_memcpy * dst;
+ (void)service_flags;
+
if ((addrlen != sizeof(nt_sockaddr_in4))
&& (addrlen != sizeof(nt_sockaddr_in6)))
return NT_STATUS_INVALID_PARAMETER_3;
diff --git a/src/socket/ntapi_sc_wait.c b/src/socket/ntapi_sc_wait.c
index d6e7210..64d74cb 100644
--- a/src/socket/ntapi_sc_wait.c
+++ b/src/socket/ntapi_sc_wait.c
@@ -14,6 +14,8 @@ int32_t __cdecl __ntapi_sc_wait(nt_socket * hssocket, nt_iosb * iosb, nt_timeout
{
nt_iosb cancel;
+ (void)iosb;
+
timeout = (timeout && timeout->quad)
? timeout
: 0;