[vlc-commits] [Git][videolan/vlc][master] network: don't use net_errno with poll()

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jun 30 11:04:42 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
402b07d5 by Steve Lhomme at 2022-06-30T10:52:14+00:00
network: don't use net_errno with poll()

The Win32 implementation of poll() sets errno, not net_errno.

- - - - -


1 changed file:

- src/network/io.c


Changes:

=====================================
src/network/io.c
=====================================
@@ -325,7 +325,7 @@ int net_Accept(vlc_object_t *obj, int *fds)
     {
         while (poll(ufd, n, -1) == -1)
         {
-            if (net_errno != EINTR)
+            if (errno != EINTR)
             {
                 msg_Err(obj, "poll error: %s", vlc_strerror_c(net_errno));
                 return -1;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/402b07d5bc407b5bcb760973d307e96e9c64185a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/402b07d5bc407b5bcb760973d307e96e9c64185a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list