Fix typo in frequency. Little refactoring and simple unity change

This commit is contained in:
Dr-Noob
2018-03-30 00:09:16 +02:00
parent 720457f4ac
commit 5e65f5bb78
6 changed files with 49 additions and 26 deletions

8
01h.c
View File

@@ -218,17 +218,17 @@ char* getString_FMA(struct cpuInfo* cpu) {
char* getString_AES(struct cpuInfo* cpu) {
char* string = malloc(sizeof(char)*3+1);
if(cpu->AES == BOOLEAN_TRUE)
snprintf(string,3+1,"Yes");
snprintf(string,3+1,STRING_YES);
else
snprintf(string,2+1,"No");
snprintf(string,2+1,STRING_NO);
return string;
}
char* getString_SHA(struct cpuInfo* cpu) {
char* string = malloc(sizeof(char)*3+1);
if(cpu->SHA == BOOLEAN_TRUE)
snprintf(string,3+1,"Yes");
snprintf(string,3+1,STRING_YES);
else
snprintf(string,2+1,"No");
snprintf(string,2+1,STRING_NO);
return string;
}