Browse Source

[core] quiet coverity warnings

master
Glenn Strauss 2 months ago
parent
commit
434fab4929
  1. 2
      src/chunk.c
  2. 2
      src/fdevent.c

2
src/chunk.c

@ -918,7 +918,7 @@ void chunkqueue_internal_pipes(int init) {
if (-1 != cqpipes[0]) { close(cqpipes[0]); cqpipes[0] = -1; }
if (-1 != cqpipes[1]) { close(cqpipes[1]); cqpipes[1] = -1; }
if (init)
fdevent_pipe_cloexec(cqpipes, 262144);
if (0 != fdevent_pipe_cloexec(cqpipes, 262144)) { } /*(ignore error)*/
}
__attribute_cold__

2
src/fdevent.c

@ -637,7 +637,7 @@ int fdevent_pipe_cloexec (int * const fds, const unsigned int bufsz_hint) {
}
#ifdef F_SETPIPE_SZ
if (bufsz_hint > 65536)
fcntl(fds[1], F_SETPIPE_SZ, bufsz_hint);
if (0 != fcntl(fds[1], F_SETPIPE_SZ, bufsz_hint)) { } /*(ignore error)*/
#endif
return 0;
#endif

Loading…
Cancel
Save