[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
This commit is contained in:
parent
65c9947225
commit
7250301d3e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue