SonarCloud: minor codesmells

pull/617/head
Brad House 1 year ago
parent 4e73f1055e
commit e40828ee56
  1. 2
      src/lib/ares_process.c
  2. 1
      src/tools/adig.c

@ -797,7 +797,7 @@ static ares_status_t ares__append_tcpbuf(struct server_state *server,
return ares__buf_append(server->tcp_send, query->qbuf, query->qlen);
}
static size_t ares__calc_query_timeout(struct query *query)
static size_t ares__calc_query_timeout(const struct query *query)
{
const ares_channel_t *channel = query->channel;
size_t timeplus = channel->timeout;

@ -236,7 +236,6 @@ static ares_bool_t read_cmdline(int argc, const char **argv,
"%c requires an argument", state.optopt);
return ARES_FALSE;
case '?':
default:
snprintf(config->error, sizeof(config->error),
"unrecognized option: %c", state.optopt);

Loading…
Cancel
Save