Skip to content

Commit 7250301

Browse files
authored
[components][net] sal_sock = sal_get_socket((int)file->data); ==> sal_sock = sal_get_socket((int)file->vnode->data); (RT-Thread#9065)
* [components][drivers] added sensor device lookup function * [components][drivers] modified the format * [components][drivers] modified 'sensor.c' file format * Update af_inet_at.c
1 parent 65c9947 commit 7250301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/net/sal/impl/af_inet_at.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int at_poll(struct dfs_file *file, struct rt_pollreq *req)
3131
struct at_socket *sock;
3232
struct sal_socket *sal_sock;
3333

34-
sal_sock = sal_get_socket((int) file->data);
34+
sal_sock = sal_get_socket((int)file->vnode->data);
3535
if(!sal_sock)
3636
{
3737
return -1;

0 commit comments

Comments
 (0)