From 0042b62fc6f54935d481b632c1e9153b64d0ce58 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 11 Oct 2017 15:48:58 -0400 Subject: Cleanup: Remove "const" qualifiers from function return types. --- core.c | 2 +- ecdsa.c | 2 +- hal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.c b/core.c index 8e9f2b2..931de5e 100644 --- a/core.c +++ b/core.c @@ -270,7 +270,7 @@ const hal_core_info_t *hal_core_info(const hal_core_t *core) return core == NULL ? NULL : &core->info; } -const int hal_core_busy(const hal_core_t *core) +int hal_core_busy(const hal_core_t *core) { return (int)core->busy; } diff --git a/ecdsa.c b/ecdsa.c index 8791ebe..170a24c 100644 --- a/ecdsa.c +++ b/ecdsa.c @@ -199,7 +199,7 @@ const size_t hal_ecdsa_key_t_size = sizeof(struct hal_ecdsa_key); * first time anything asks for any of them. */ -static const ecdsa_curve_t * const get_curve(const hal_curve_name_t curve) +static const ecdsa_curve_t * get_curve(const hal_curve_name_t curve) { static ecdsa_curve_t curve_p256, curve_p384, curve_p521; static int initialized = 0; diff --git a/hal.h b/hal.h index 47ebe25..f750ebb 100644 --- a/hal.h +++ b/hal.h @@ -232,7 +232,7 @@ extern hal_error_t hal_core_alloc(const char *name, hal_core_t **core); extern void hal_core_free(hal_core_t *core); extern void hal_critical_section_start(void); extern void hal_critical_section_end(void); -extern const int hal_core_busy(const hal_core_t *core); +extern int hal_core_busy(const hal_core_t *core); /* * Slightly higher level public API, still working directly with cores. -- cgit v1.2.3