From 7250301d3e8c33b57b54c216d6e58c792ac748ff Mon Sep 17 00:00:00 2001 From: yiyi <55530868+youzuwei@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:16:10 +0800 Subject: [PATCH] [components][net] sal_sock = sal_get_socket((int)file->data); ==> sal_sock = sal_get_socket((int)file->vnode->data); (#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 --- components/net/sal/impl/af_inet_at.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/sal/impl/af_inet_at.c b/components/net/sal/impl/af_inet_at.c index 0d1ea310fa..f119c0bc61 100644 --- a/components/net/sal/impl/af_inet_at.c +++ b/components/net/sal/impl/af_inet_at.c @@ -31,7 +31,7 @@ static int at_poll(struct dfs_file *file, struct rt_pollreq *req) struct at_socket *sock; struct sal_socket *sal_sock; - sal_sock = sal_get_socket((int) file->data); + sal_sock = sal_get_socket((int)file->vnode->data); if(!sal_sock) { return -1;