aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-10-11 15:48:58 -0400
committerPaul Selkirk <paul@psgd.org>2017-10-11 15:48:58 -0400
commit0042b62fc6f54935d481b632c1e9153b64d0ce58 (patch)
tree6c9fe82f7e0346f70316d979e28cbb659cd79cf7
parent63636301593c8a3952afae61c1b5f279c27f69ea (diff)
Cleanup: Remove "const" qualifiers from function return types.
-rw-r--r--core.c2
-rw-r--r--ecdsa.c2
-rw-r--r--hal.h2
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.