summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-27 12:47:52 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-28 09:25:38 +0100
commitef51180b625c36a6ae42eea6d387e32760c281af (patch)
tree279380adf38c807067a653729e2bc4d6e62c6678 /src
parent10a6e01eaa9e340c4edafa771c001986bdcdcfc6 (diff)
downloadsystemd-ef51180b625c36a6ae42eea6d387e32760c281af.tar.gz
test-ndisc-ra: add assert_se() to make coverity happy
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/test-ndisc-ra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-ndisc-ra.c b/src/libsystemd-network/test-ndisc-ra.c
index 5914fa2bf0..c1a8d5a00d 100644
--- a/src/libsystemd-network/test-ndisc-ra.c
+++ b/src/libsystemd-network/test-ndisc-ra.c
@@ -262,7 +262,7 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
unsigned char buf[168];
size_t i;
- read(test_fd[0], &buf, sizeof(buf));
+ assert_se(read(test_fd[0], &buf, sizeof(buf)) == sizeof(buf));
/* router lifetime must be zero when test is stopped */
if (test_stopped) {