diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-06-07 10:41:22 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-06-08 08:13:02 +0200 |
commit | a691f49482afbe0e1c88f3da5cc593d34b00576e (patch) | |
tree | 87a9924aea8b1756232a698d301d2a66ee7037de /lib | |
parent | Merge !1404: tests/dnstap: let Go handle its transitive dependencies (diff) | |
download | knot-resolver-a691f49482afbe0e1c88f3da5cc593d34b00576e.tar.xz knot-resolver-a691f49482afbe0e1c88f3da5cc593d34b00576e.zip |
treewide: fix -Wstrict-prototypes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/log.c | 4 | ||||
-rw-r--r-- | lib/log.h | 2 | ||||
-rw-r--r-- | lib/module.h | 2 | ||||
-rw-r--r-- | lib/utils.c | 2 | ||||
-rw-r--r-- | lib/utils.h | 2 |
5 files changed, 6 insertions, 6 deletions
@@ -203,7 +203,7 @@ enum kr_log_group kr_log_name2grp(const char *name) -static void kr_gnutls_log_level_set() +static void kr_gnutls_log_level_set(void) { /* gnutls logs messages related to our TLS and also libdnssec, * and the logging is set up in a global way only */ @@ -238,7 +238,7 @@ void kr_log_group_add(enum kr_log_group group) kr_gnutls_log_level_set(); } -void kr_log_group_reset() +void kr_log_group_reset(void) { bool had_gnutls = kr_log_group_is_set(LOG_GRP_GNUTLS); kr_log_groups = 0; @@ -139,7 +139,7 @@ bool kr_log_group_is_set(enum kr_log_group group); KR_EXPORT void kr_log_group_add(enum kr_log_group group); KR_EXPORT -void kr_log_group_reset(); +void kr_log_group_reset(void); KR_EXPORT const char *kr_log_grp2name(enum kr_log_group group); KR_EXPORT diff --git a/lib/module.h b/lib/module.h index 7548803c..507b2df1 100644 --- a/lib/module.h +++ b/lib/module.h @@ -22,7 +22,7 @@ struct kr_prop; * @param module module name (e.g. policy) */ #define KR_MODULE_EXPORT(module) \ - KR_EXPORT uint32_t module ## _api() { return KR_MODULE_API; } + KR_EXPORT uint32_t module ## _api(void) { return KR_MODULE_API; } #define KR_MODULE_API ((uint32_t) 0x20210125) typedef uint32_t (module_api_cb)(void); diff --git a/lib/utils.c b/lib/utils.c index 52366e91..8b7e1270 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1224,7 +1224,7 @@ char *kr_rrset_text(const knot_rrset_t *rr) return buf; } -uint64_t kr_now() +uint64_t kr_now(void) { return uv_now(uv_default_loop()); } diff --git a/lib/utils.h b/lib/utils.h index 0d1d8456..1f30e984 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -503,7 +503,7 @@ static inline uint16_t kr_rrset_type_maysig(const knot_rrset_t *rr) * \note it may be outdated in case of long callbacks; see uv_now(). */ KR_EXPORT -uint64_t kr_now(); +uint64_t kr_now(void); /** Call free(handle->data); it's useful e.g. as a callback in uv_close(). */ KR_EXPORT void kr_uv_free_cb(uv_handle_t* handle); |