Explorar o código

[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
yiyi hai 10 meses
pai
achega
7250301d3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/net/sal/impl/af_inet_at.c

+ 1 - 1
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;