[Xfce4-commits] [xfce/xfce4-session] 01/01: Silence compiler warnings
noreply at xfce.org
noreply at xfce.org
Fri May 17 14:50:13 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-session.
commit 88c2887cce206ef774d096b6fcda1ada7a52f20c
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri May 17 14:50:00 2019 +0200
Silence compiler warnings
---
xfce4-session/xfsm-legacy.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/xfce4-session/xfsm-legacy.c b/xfce4-session/xfsm-legacy.c
index 9e6b009..92b0c3b 100644
--- a/xfce4-session/xfsm-legacy.c
+++ b/xfce4-session/xfsm-legacy.c
@@ -444,6 +444,7 @@ xfsm_legacy_perform_session_save (void)
{
struct timeval tv;
fd_set fds;
+ fd_set exceptfds;
int msecs;
int fd;
int ret;
@@ -455,9 +456,11 @@ xfsm_legacy_perform_session_save (void)
fd = ConnectionNumber (display);
FD_ZERO (&fds);
FD_SET (fd, &fds);
+ FD_ZERO (&exceptfds);
+ FD_SET (fd, &exceptfds);
tv.tv_sec = (WM_SAVE_YOURSELF_TIMEOUT - msecs) / 1000;
tv.tv_usec = ((WM_SAVE_YOURSELF_TIMEOUT - msecs) % 1000) * 1000;
- ret = select (fd + 1, &fds, NULL, &fds, &tv);
+ ret = select (fd + 1, &fds, NULL, &exceptfds, &tv);
if (ret == -1)
{
perror ("select");
@@ -666,6 +669,3 @@ xfsm_legacy_shutdown (void)
gdk_error_trap_pop_ignored ();
#endif
}
-
-
-
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list