From 238709e1d9ad702e6a9418e827b8588c00d20a78 Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Sun, 25 Feb 2024 22:46:45 -0300 Subject: [PATCH] faces/totp: rename initializer macro to credential Shorter and far more expressive. --- movement/watch_faces/complication/totp_face.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/movement/watch_faces/complication/totp_face.c b/movement/watch_faces/complication/totp_face.c index 2edabd83..ac73c55e 100644 --- a/movement/watch_faces/complication/totp_face.c +++ b/movement/watch_faces/complication/totp_face.c @@ -46,7 +46,7 @@ typedef struct { unsigned char *key; } totp_t; -#define TOTP_INITIALIZER(label, key_array, algo, timestep) \ +#define CREDENTIAL(label, key_array, algo, timestep) \ (const totp_t) { \ .key = ((unsigned char *) key_array), \ .key_length = sizeof(key_array) - 1, \ @@ -59,8 +59,8 @@ typedef struct { // Enter your TOTP key data below static totp_t credentials[] = { - TOTP_INITIALIZER(2F, "JBSWY3DPEHPK3PXP", SHA1, 30), - TOTP_INITIALIZER(AC, "JBSWY3DPEHPK3PXP", SHA1, 30), + CREDENTIAL(2F, "JBSWY3DPEHPK3PXP", SHA1, 30), + CREDENTIAL(AC, "JBSWY3DPEHPK3PXP", SHA1, 30), }; // END OF KEY DATA.