summaryrefslogtreecommitdiffstats
path: root/movement/lib/TOTP-MCU
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-10 12:00:26 -0500
commit762af872d2f2c977e51d6e51b8c3ad622485cc05 (patch)
tree0fd44fe4996b04a82c5c0cc46178b5893d3ae1c0 /movement/lib/TOTP-MCU
parent316e1f292c603885f2af3dcd69ce797d64776425 (diff)
downloadSensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.gz
Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.bz2
Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.zip
fix missing prototype warnings
Diffstat (limited to 'movement/lib/TOTP-MCU')
-rw-r--r--movement/lib/TOTP-MCU/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/lib/TOTP-MCU/sha1.c b/movement/lib/TOTP-MCU/sha1.c
index 8e918e64..3ac14856 100644
--- a/movement/lib/TOTP-MCU/sha1.c
+++ b/movement/lib/TOTP-MCU/sha1.c
@@ -38,7 +38,7 @@ uint32_t rol32(uint32_t number, uint8_t bits) {
return ((number << bits) | (uint32_t)(number >> (32-bits)));
}
-void hashBlock() {
+void hashBlock(void) {
uint8_t i;
uint32_t a,b,c,d,e,t;
@@ -97,7 +97,7 @@ void writeArray(uint8_t *buffer, uint8_t size){
}
}
-void pad() {
+void pad(void) {
// Implement SHA-1 padding (fips180-2 ��5.1.1)
// Pad with 0x80 followed by 0x00 until the end of the block