Browse Source

[Minor] str_from_rdns_type -> rdns_str_from_type to keep consistency

tags/1.8.0
Mikhail Galanin 5 years ago
parent
commit
4d471ea9ce
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      contrib/librdns/rdns.h
  2. 1
    1
      contrib/librdns/util.c
  3. 3
    3
      src/libserver/dns.c

+ 1
- 1
contrib/librdns/rdns.h View File

@@ -397,7 +397,7 @@ enum rdns_request_type rdns_type_fromstr (const char *str);
* @return
*/
const char *
str_from_rdns_type (enum rdns_request_type rcode);
rdns_str_from_type (enum rdns_request_type rcode);

/**
* Parse string and return error code

+ 1
- 1
contrib/librdns/util.c View File

@@ -290,7 +290,7 @@ rdns_type_fromstr (const char *str)
}

const char *
str_from_rdns_type (enum rdns_request_type rcode)
rdns_str_from_type (enum rdns_request_type rcode)
{
switch (rcode) {
case RDNS_REQUEST_INVALID:

+ 3
- 3
src/libserver/dns.c View File

@@ -440,7 +440,7 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
default:
msg_err_config ("invalid or unsupported reply element "
"for fake DNS record %s(%s): %s",
name, str_from_rdns_type (rtype), str_rep);
name, rdns_str_from_type (rtype), str_rep);
free (rep);
break;
}
@@ -449,7 +449,7 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
ucl_object_iterate_free (rep_it);

if (replies) {
msg_info_config ("added fake record: %s(%s)", name, str_from_rdns_type (rtype));
msg_info_config ("added fake record: %s(%s)", name, rdns_str_from_type (rtype));
rdns_resolver_set_fake_reply (dns_resolver->r,
name, rtype, rcode, replies);
}
@@ -464,7 +464,7 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,

if (replies_obj) {
msg_warn_config ("replies are set for non-successful return "
"code for %s(%s), they will be ignored", name, str_from_rdns_type (rtype));
"code for %s(%s), they will be ignored", name, rdns_str_from_type (rtype));
}

rdns_resolver_set_fake_reply (dns_resolver->r,

Loading…
Cancel
Save