projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
inet6.c
diff --git
a/src/common/sessiond-comm/inet6.c
b/src/common/sessiond-comm/inet6.c
index c33e39f7bb9a2408e291a0f6e3d6310ab442af85..c9c9a5ae411e561099a682f310d74103368beb00 100644
(file)
--- a/
src/common/sessiond-comm/inet6.c
+++ b/
src/common/sessiond-comm/inet6.c
@@
-6,7
+6,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
@@
-14,13
+13,13
@@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <errno.h>
#include <fcntl.h>
#include <common/compat/time.h>
#include <poll.h>
#include <common/common.h>
#include <common/time.h>
#include <fcntl.h>
#include <common/compat/time.h>
#include <poll.h>
#include <common/common.h>
#include <common/time.h>
+#include <common/compat/errno.h>
#include "inet6.h"
#include "inet6.h"
@@
-350,7
+349,7
@@
ssize_t lttcomm_recvmsg_inet6_sock(struct lttcomm_sock *sock, void *buf,
}
iov[0].iov_base += ret;
iov[0].iov_len -= ret;
}
iov[0].iov_base += ret;
iov[0].iov_len -= ret;
-
assert
(ret <= len_last);
+
LTTNG_ASSERT
(ret <= len_last);
}
} while ((ret > 0 && ret < len_last) || (ret < 0 && errno == EINTR));
if (ret < 0) {
}
} while ((ret > 0 && ret < len_last) || (ret < 0 && errno == EINTR));
if (ret < 0) {
This page took
0.023661 seconds
and
4
git commands to generate.