Signed-off-by: David Goulet <dgoulet@efficios.com>
static void *thread_manage_kernel(void *data)
{
int ret, i, pollfd, update_poll_flag = 1, err = -1;
- ssize_t size_ret;
uint32_t revents, nb_fd;
char tmp;
struct lttng_poll_event events;
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <unistd.h>
-#include <errno.h>
#include <assert.h>
+#include <errno.h>
+#include <unistd.h>
+
#include "readwrite.h"
/*
size_t i = 0;
ssize_t ret;
+ assert(fd >= 0);
+ assert(buf);
+
do {
ret = read(fd, buf + i, count - i);
if (ret < 0) {
size_t i = 0;
ssize_t ret;
+ assert(fd >= 0);
+ assert(buf);
+
do {
ret = write(fd, buf + i, count - i);
if (ret < 0) {