Skip to content

Commit

Permalink
network: fix potentially redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Apr 26, 2016
1 parent 25f268c commit 5ee961e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/network/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ int net_AcceptSingle (vlc_object_t *obj, int lfd)
int fd = vlc_accept (lfd, NULL, NULL, true);
if (fd == -1)
{
if (net_errno != EAGAIN && net_errno != EWOULDBLOCK)
if (net_errno != EAGAIN)
#if (EAGAIN != EWOULDBLOCK)
if (net_errno != EWOULDBLOCK)
#endif
msg_Err (obj, "accept failed (from socket %d): %s", lfd,
vlc_strerror_c(net_errno));
return -1;
Expand Down

0 comments on commit 5ee961e

Please sign in to comment.