[Cryptech-Commits] [sw/libhal] 01/03: Cleanup: Remove "const" qualifiers from function return types.
git at cryptech.is
git at cryptech.is
Mon Oct 16 01:40:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/libhal.
commit 0042b62fc6f54935d481b632c1e9153b64d0ce58
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Wed Oct 11 15:48:58 2017 -0400
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.
More information about the Commits
mailing list