[glib/glib-2-70: 8/18] gsocket: Add ignorant of an fcntl return value




commit 567fae6e0b29594842cf7eab16b1a782d374fd04
Author: Egor Bychin <e bychin drweb com>
Date:   Mon Oct 11 14:04:57 2021 +0300

    gsocket: Add ignorant of an fcntl return value

 gio/gsocket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index d5603c538..d13e2cab7 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -621,7 +621,7 @@ g_socket (gint     domain,
        (flags & FD_CLOEXEC) == 0)
       {
        flags |= FD_CLOEXEC;
-       fcntl (fd, F_SETFD, flags);
+       (void) fcntl (fd, F_SETFD, flags);
       }
   }
 #else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]