Skip to content
Snippets Groups Projects
Commit d70293c2 authored by Craig Tiller's avatar Craig Tiller
Browse files

Sprinkle casts

parent ae322afe
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ static void finally_add_fd(grpc_pollset *pollset, grpc_fd *fd) { ...@@ -72,7 +72,7 @@ static void finally_add_fd(grpc_pollset *pollset, grpc_fd *fd) {
to this pollset whilst adding, but that should be benign. */ to this pollset whilst adding, but that should be benign. */
GPR_ASSERT(grpc_fd_begin_poll(fd, pollset, 0, 0, &watcher) == 0); GPR_ASSERT(grpc_fd_begin_poll(fd, pollset, 0, 0, &watcher) == 0);
if (watcher.fd != NULL) { if (watcher.fd != NULL) {
ev.events = EPOLLIN | EPOLLOUT | EPOLLET; ev.events = (uint32_t)(EPOLLIN | EPOLLOUT | EPOLLET);
ev.data.ptr = fd; ev.data.ptr = fd;
err = epoll_ctl(h->epoll_fd, EPOLL_CTL_ADD, fd->fd, &ev); err = epoll_ctl(h->epoll_fd, EPOLL_CTL_ADD, fd->fd, &ev);
if (err < 0) { if (err < 0) {
......
...@@ -101,7 +101,7 @@ static void asciidump(dump_out *out, const char *buf, size_t len) { ...@@ -101,7 +101,7 @@ static void asciidump(dump_out *out, const char *buf, size_t len) {
dump_out_append(out, '\''); dump_out_append(out, '\'');
} }
for (cur = beg; cur != end; ++cur) { for (cur = beg; cur != end; ++cur) {
dump_out_append(out, isprint(*cur) ? *(char *)cur : '.'); dump_out_append(out, (char)(isprint(*cur) ? *(char *)cur : '.'));
} }
if (!out_was_empty) { if (!out_was_empty) {
dump_out_append(out, '\''); dump_out_append(out, '\'');
......
...@@ -486,7 +486,7 @@ static int init_skip_frame_parser( ...@@ -486,7 +486,7 @@ static int init_skip_frame_parser(
transport_parsing->hpack_parser.on_header_user_data = NULL; transport_parsing->hpack_parser.on_header_user_data = NULL;
transport_parsing->hpack_parser.is_boundary = is_eoh; transport_parsing->hpack_parser.is_boundary = is_eoh;
transport_parsing->hpack_parser.is_eof = transport_parsing->hpack_parser.is_eof =
is_eoh ? transport_parsing->header_eof : 0; (gpr_uint8)(is_eoh ? transport_parsing->header_eof : 0);
} else { } else {
transport_parsing->parser = skip_parser; transport_parsing->parser = skip_parser;
} }
...@@ -696,7 +696,7 @@ static int init_header_frame_parser( ...@@ -696,7 +696,7 @@ static int init_header_frame_parser(
transport_parsing->hpack_parser.on_header_user_data = transport_parsing; transport_parsing->hpack_parser.on_header_user_data = transport_parsing;
transport_parsing->hpack_parser.is_boundary = is_eoh; transport_parsing->hpack_parser.is_boundary = is_eoh;
transport_parsing->hpack_parser.is_eof = transport_parsing->hpack_parser.is_eof =
is_eoh ? transport_parsing->header_eof : 0; (gpr_uint8)(is_eoh ? transport_parsing->header_eof : 0);
if (!is_continuation && (transport_parsing->incoming_frame_flags & if (!is_continuation && (transport_parsing->incoming_frame_flags &
GRPC_CHTTP2_FLAG_HAS_PRIORITY)) { GRPC_CHTTP2_FLAG_HAS_PRIORITY)) {
grpc_chttp2_hpack_parser_set_has_priority(&transport_parsing->hpack_parser); grpc_chttp2_hpack_parser_set_has_priority(&transport_parsing->hpack_parser);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment