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:
@@ -56,7 +56,7 @@ struct net_socket_module_info {
|
|||||||
size_t vecCount, size_t* _length);
|
size_t vecCount, size_t* _length);
|
||||||
status_t (*writev)(net_socket* socket, const iovec* vecs,
|
status_t (*writev)(net_socket* socket, const iovec* vecs,
|
||||||
size_t vecCount, size_t* _length);
|
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);
|
size_t length);
|
||||||
|
|
||||||
ssize_t (*read_avail)(net_socket* socket);
|
ssize_t (*read_avail)(net_socket* socket);
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ socket_writev(net_socket* socket, const iovec* vecs, size_t vecCount,
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
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) {
|
switch (op) {
|
||||||
case FIONBIO:
|
case FIONBIO:
|
||||||
|
|||||||
Reference in New Issue
Block a user