chiark / gitweb /
sd-daemon: simplify sd_pid_notify_with_fds
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 14 Mar 2015 02:22:05 +0000 (21:22 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 14 Mar 2015 03:42:17 +0000 (23:42 -0400)
commit64144440a5d2d94482f882b992fd2a4e0dca7a05
tree0c516e4e54e415f1eb2ffbcc801e9607527ca498
parent24bfda116ce2a627aebe3eba3ad71d34498f5545
sd-daemon: simplify sd_pid_notify_with_fds

Coverity was complaining that CMSG_NXTHDR is used without
checking the return value. In this case it cannot fail, but
it is a good excuse to simplify the function a bit.

CID #1261726.
src/libsystemd/sd-daemon/sd-daemon.c