chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3869079
)
treewide: fix typos and then/that use
author
Torstein Husebø
<torstein@huseboe.net>
Mon, 8 Feb 2016 12:27:22 +0000
(13:27 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000
(10:12 +0200)
src/libelogind/sd-daemon/sd-daemon.c
patch
|
blob
|
history
diff --git
a/src/libelogind/sd-daemon/sd-daemon.c
b/src/libelogind/sd-daemon/sd-daemon.c
index 85d7757e16edfbbed6ee58a3b76452fb91d42acb..773112249b185b5f1f5d26dee97ad597a193f5f3 100644
(file)
--- a/
src/libelogind/sd-daemon/sd-daemon.c
+++ b/
src/libelogind/sd-daemon/sd-daemon.c
@@
-469,7
+469,7
@@
_public_ int sd_pid_notify_with_fds(pid_t pid, int unset_environment, const char
have_pid = pid != 0 && pid != getpid();
if (n_fds > 0 || have_pid) {
- /* CMSG_SPACE(0) may return value different th
e
n zero, which results in miscalculated controllen. */
+ /* CMSG_SPACE(0) may return value different th
a
n zero, which results in miscalculated controllen. */
msghdr.msg_controllen =
(n_fds > 0 ? CMSG_SPACE(sizeof(int) * n_fds) : 0) +
(have_pid ? CMSG_SPACE(sizeof(struct ucred)) : 0);