From 7fee305e8b6a21695d7cda412a73a398640cc925 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Mon, 22 Jun 2020 15:30:05 +0200 Subject: [PATCH] Little fixes --- src/main.c | 4 ++-- src/standart.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 4a9fcd0..050a85b 100644 --- a/src/main.c +++ b/src/main.c @@ -27,7 +27,7 @@ Peak FLOPS: 512 GFLOP/s(in simple precision) static const char* VERSION = "0.49"; -void print_help(int argc, char *argv[]) { +void print_help(char *argv[]) { printf("Usage: %s [--version] [--help] [--style STYLE]\n\ Options: \n\ --style Set logo style color\n\ @@ -49,7 +49,7 @@ int main(int argc, char* argv[]) { return EXIT_FAILURE; if(show_help()) { - print_help(argc, argv); + print_help(argv); return EXIT_SUCCESS; } diff --git a/src/standart.c b/src/standart.c index 135d8bc..489cd70 100644 --- a/src/standart.c +++ b/src/standart.c @@ -92,7 +92,7 @@ void init_cpu_info(struct cpuInfo* cpu) { cpu->SHA = false; } -void get_cpu_vendor_internal(char* name, uint32_t eax,uint32_t ebx,uint32_t ecx,uint32_t edx) { +void get_cpu_vendor_internal(char* name, uint32_t ebx,uint32_t ecx,uint32_t edx) { name[__COUNTER__] = ebx & MASK; name[__COUNTER__] = (ebx>>8) & MASK; name[__COUNTER__] = (ebx>>16) & MASK; @@ -124,7 +124,7 @@ struct cpuInfo* get_cpu_info() { //Fill vendor char name[13]; memset(name,0,13); - get_cpu_vendor_internal(name, eax,ebx,ecx,edx); + get_cpu_vendor_internal(name, ebx, ecx, edx); if(strcmp(VENDOR_INTEL_STRING,name) == 0) cpu->cpu_vendor = VENDOR_INTEL;