A couple of calls to write() would generate warnings when the
"-Wunused-result" compiler option is enabled. This change ignores the
return value, since we can't do anything about it in logging code.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
vlog_async_write_request_cb, NULL, NULL);
vlog_async_inited = true;
} else {
- write(log_fd, s->string, s->length);
+ ignore(write(log_fd, s->string, s->length));
}
}
}
if (request->size > 0) {
- write(log_fd, request->data, request->size);
+ ignore(write(log_fd, request->data, request->size));
}
}