net_socket: control op should be uint32.

Where it is called from stack_interface_ioctl, the parameter
is already a uint32 there.

Fixes #13826.
This commit is contained in:
Augustin Cavalier 2017-12-03 13:57:26 -05:00
parent acf02fd2cf
commit f1e8af173c
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ struct net_socket_module_info {
size_t vecCount, size_t* _length);
status_t (*writev)(net_socket* socket, const iovec* vecs,
size_t vecCount, size_t* _length);
status_t (*control)(net_socket* socket, int32 op, void* data,
status_t (*control)(net_socket* socket, uint32 op, void* data,
size_t length);
ssize_t (*read_avail)(net_socket* socket);

View File

@ -529,7 +529,7 @@ socket_writev(net_socket* socket, const iovec* vecs, size_t vecCount,
status_t
socket_control(net_socket* socket, int32 op, void* data, size_t length)
socket_control(net_socket* socket, uint32 op, void* data, size_t length)
{
switch (op) {
case FIONBIO: