diff --git a/c/src/p2fa.c b/c/src/p2fa.c index af0fdc2..d442b65 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -15,9 +15,6 @@ #include "../libs/GUI/GUI_BMPfile.h" #include "../libs/Config/Debug.h" -extern char** getConfigNames(int* length); -extern void freeCStringArray(char** cStrings, int length); - void Handler(int sigNum) { DebugLine(28, 0, "Caught signal %d\n", sigNum); EPD_2in13_V4_Init(); @@ -34,8 +31,9 @@ void Handler(int sigNum) { } void home(UWORD *blackImage) { - int length; - char** configNames = getConfigNames(&length); + struct getConfigNames_return configNamesReturn = getConfigNames(); + int length = configNamesReturn.r1; + char** configNames = configNamesReturn.r0; if (configNames == NULL || length == 0) { DebugLine(10, 0, "No configs found\n"); diff --git a/go/totp.go b/go/totp.go index 637cde9..9fe3407 100644 --- a/go/totp.go +++ b/go/totp.go @@ -160,4 +160,4 @@ func getTimeRemainingMS(n int) uint64 { return (uint64(n) * 1000) - (uint64(time.Now().UnixNano()/1e6) % (uint64(n) * 1000)) } -//func main() {} +func main() {}