Fix warning

This commit is contained in:
Xpl0itU 2022-04-05 20:53:26 +02:00
parent 2ebd77eb55
commit 0a8e12385e
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ auto doit(char *text) -> char * {
json = cJSON_Parse(text);
if (!json)
return "";
return (char*)"";
else {
str = cJSON_GetObjectItemCaseSensitive(json, "Date");
out = strdup(str->valuestring);
@ -55,7 +55,7 @@ auto getSlotDate(uint32_t highID, uint32_t lowID, uint8_t slot) -> char * {
char *info = dofile(path);
return info;
} else
return "";
return (char*)"";
}
auto setSlotDate(uint32_t highID, uint32_t lowID, uint8_t slot, char *date) -> bool {

View File

@ -13,7 +13,7 @@
#include <iosuhax.h>
#include <iosuhax_devoptab.h>
#include <padscore/kpad.h>
#include <stdio.h>
#include <cstdio>
#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>