Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns: cleanups #2481

Merged
merged 2 commits into from
Oct 9, 2024
Merged

dns: cleanups #2481

merged 2 commits into from
Oct 9, 2024

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Oct 9, 2024

this changeset includes two trivial cleanups. they were inspired when auditing the c-ares code.

as suggested by its comment:
```c
/* Legacy typedef, don't use, you can't specify "const" */
typedef struct ares_channeldata *ares_channel;

/* Current main channel typedef */
typedef struct ares_channeldata  ares_channel_t;
```

this change has no impact so far, as we don't pass the `&_channel`
around. the constness is more important to the c-ares library. but
let's use the suggested typedef, the name is more consistent with other
typedefs provided by c-ares library.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
the parameter passed to `ares_library_init()` is a bitmap. so 0
is indeed nothing but `ARES_LIB_INIT_NONE` is more readable.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
@xemul xemul closed this in 850e447 Oct 9, 2024
@xemul xemul merged commit 850e447 into scylladb:master Oct 9, 2024
15 checks passed
@tchaikov tchaikov deleted the dns-cleanup branch October 9, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants