Skip to content

Commit caa7d53

Browse files
andreittrrazvand
authored andcommitted
socket.c: Update to posix-socket poll setup API
This change updates the posix-socket interface of lwip to use the new poll setup API introduced with explicitly polled sockets. Signed-off-by: Andrei Tatar <[email protected]> Approved-by: Razvan Deaconescu <[email protected]> Reviewed-by: Razvan Deaconescu <[email protected]> GitHub-Closes: #58
1 parent 4efb424 commit caa7d53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sockets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ lwip_posix_socket_event_callback(struct lwip_sock *sock,
475475
}
476476

477477
static void
478-
lwip_posix_socket_poll(posix_sock *file)
478+
lwip_posix_socket_poll_setup(posix_sock *file)
479479
{
480480
int lwip_fd;
481481
unsigned revents;
@@ -520,7 +520,7 @@ static struct posix_socket_ops lwip_posix_socket_ops = {
520520
.write = lwip_posix_socket_write,
521521
.close = lwip_posix_socket_close,
522522
.ioctl = lwip_posix_socket_ioctl,
523-
.poll = lwip_posix_socket_poll,
523+
.poll_setup = lwip_posix_socket_poll_setup,
524524
};
525525

526526
POSIX_SOCKET_FAMILY_REGISTER(AF_INET, &lwip_posix_socket_ops);

0 commit comments

Comments
 (0)