[systemd-devel] [PATCH] manager: use CMSG macros

Lennart Poettering lennart at poettering.net
Tue Feb 4 04:49:59 PST 2014


On Sun, 02.02.14 12:18, Shawn Landden (shawn at churchofgit.com) wrote:

Please elaborate what this is supposed to do?

> ---
>  src/core/manager.c | 29 +++++++++++++++++++++--------
>  1 file changed, 21 insertions(+), 8 deletions(-)
> 
> diff --git a/src/core/manager.c b/src/core/manager.c
> index 634b141..74fb52d 100644
> --- a/src/core/manager.c
> +++ b/src/core/manager.c
> @@ -1275,9 +1275,10 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
>                  };
>  
>                  union {
> -                        struct cmsghdr cmsghdr;
> +                        struct msghdr msghdr;

Hmm? THis is the buffer for the control data, and hence cmsghdr is
appropriate, not msghdr... What are you trying to do?


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list