X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvlog.c;h=0bd9bd135892b7d26d343f24cc327d02b0b2ad6d;hb=61a7b1e6fee6c81b0d8551898d2b108de2b42536;hp=fc601e8d13f0e8bf48c5be75e9cfd0aac6e0ea91;hpb=cbb13e8e4c3e5766202ebe68bed9e414f62fa1c7;p=openvswitch diff --git a/lib/vlog.c b/lib/vlog.c index fc601e8d..0bd9bd13 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -762,7 +762,7 @@ void vlog_fatal_valist(const struct vlog_module *module_, const char *message, va_list args) { - struct vlog_module *module = (struct vlog_module *) module_; + struct vlog_module *module = CONST_CAST(struct vlog_module *, module_); /* Don't log this message to the console to avoid redundancy with the * message written by the later ovs_fatal_valist(). */ @@ -892,7 +892,7 @@ vlog_write_file(struct ds *s) 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)); } } @@ -918,6 +918,6 @@ vlog_async_write_request_cb(struct ofpbuf *request, } if (request->size > 0) { - write(log_fd, request->data, request->size); + ignore(write(log_fd, request->data, request->size)); } }