diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-07-07 14:57:36 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-07-07 14:58:14 +0200 | 
| commit | f49e0be728d68a4caf8733ef77351c0ca4bef3d1 (patch) | |
| tree | 5bb501d322e397427aafa2619c4932ed04cef8d8 /lib/systemd.c | |
| parent | 568f6d6c942385ac9e084b94a3034e03c1fa3bbf (diff) | |
lib: fix coverity unused result warning
There's nothing that can be done here with an error.  Try to make
Coverity understand that this is intentional.
(I don't know if the `(void)` will actually fix the coverity warning,
but I don't really have a better way to figure it out beyond just
getting this merged and waiting for a result...)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/systemd.c')
| -rw-r--r-- | lib/systemd.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/systemd.c b/lib/systemd.c index 7944c2493b..2238dc9f3d 100644 --- a/lib/systemd.c +++ b/lib/systemd.c @@ -66,8 +66,8 @@ static void systemd_send_information(const char *info)  		sun.sun_path[0] = '\0';  	/* nothing we can do if this errors out... */ -	sendto(sock, info, strlen(info), 0, (struct sockaddr *)&sun, -	       sizeof(sun)); +	(void)sendto(sock, info, strlen(info), 0, (struct sockaddr *)&sun, +		     sizeof(sun));  	close(sock);  }  | 
