chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: enumerate - fix move_later logic
[elogind.git]
/
libudev
/
libudev-util.c
diff --git
a/libudev/libudev-util.c
b/libudev/libudev-util.c
index 9a656b5a98ae5ef9cf408eb7c27b4bf5f33840ae..c0209f9cc613cdaaf54c4ec533edf4bf91e6d10b 100644
(file)
--- a/
libudev/libudev-util.c
+++ b/
libudev/libudev-util.c
@@
-481,18
+481,6
@@
err:
return -1;
}
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;
unsigned int util_string_hash32(const char *str)
{
unsigned int hash = 0;