chiark / gitweb /
work around gtk-doc which breaks distcheck
[elogind.git] / libudev / libudev-util.c
index 9a656b5a98ae5ef9cf408eb7c27b4bf5f33840ae..c0209f9cc613cdaaf54c4ec533edf4bf91e6d10b 100644 (file)
@@ -481,18 +481,6 @@ err:
        return -1;
 }
 
-void util_set_fd_cloexec(int fd)
-{
-       int flags;
-
-       flags = fcntl(fd, F_GETFD);
-       if (flags < 0)
-               flags = FD_CLOEXEC;
-       else
-               flags |= FD_CLOEXEC;
-       fcntl(fd, F_SETFD, flags);
-}
-
 unsigned int util_string_hash32(const char *str)
 {
        unsigned int hash = 0;