From 5422cf9661be0d44ca4c47889a802e15e1d3d4d9 Mon Sep 17 00:00:00 2001 From: Ken MacKay Date: Sat, 25 Apr 2015 15:42:34 -0700 Subject: [PATCH] Minor code cleanup. --- uECC.c | 4 ++-- uECC.h | 18 ++++-------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/uECC.c b/uECC.c index 684d32f..c7a5286 100644 --- a/uECC.c +++ b/uECC.c @@ -2380,12 +2380,12 @@ int uECC_verify(const uint8_t p_publicKey[uECC_BYTES*2], const uint8_t p_hash[uE return vli_equal(rx, r); } -int uECC_bytes() +int uECC_bytes(void) { return uECC_BYTES; } -int uECC_curve() +int uECC_curve(void) { return uECC_CURVE; } diff --git a/uECC.h b/uECC.h index 2a41772..18c1adb 100644 --- a/uECC.h +++ b/uECC.h @@ -179,24 +179,14 @@ Returns 1 if the public key is valid, 0 if it is invalid. int uECC_valid_public_key(const uint8_t p_publicKey[uECC_BYTES*2]); /* uECC_bytes() function. -Return the value of uECC_BYTES. Helpful for foreign-interfaces to higher-level languages. - -Inputs: - (none) - -Returns the value of uECC_BYTES +Returns the value of uECC_BYTES. Helpful for foreign-interfaces to higher-level languages. */ -int uECC_bytes(); +int uECC_bytes(void); /* uECC_curve() function. -Return the value of uECC_CURVE. Helpful for foreign-interfaces to higher-level languages. - -Inputs: - (none) - -Returns the value of uECC_CURVE +Returns the value of uECC_CURVE. Helpful for foreign-interfaces to higher-level languages. */ -int uECC_curve(); +int uECC_curve(void); #ifdef __cplusplus } /* end of extern "C" */