From 590f5a372f7043f4b12b3a2ae43f1b3c64b23ba6 Mon Sep 17 00:00:00 2001 From: ColumbusTech Date: Thu, 22 Nov 2018 22:16:40 +0300 Subject: [PATCH] corinfo_GetInfo --- corinfo.h | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/corinfo.h b/corinfo.h index 98ba10a..03bf97f 100644 --- a/corinfo.h +++ b/corinfo.h @@ -212,18 +212,6 @@ static int __hdd_info(struct corinfo* info); return 0; } - - int corinfo_GetInfo(struct corinfo* info) - { - if (info == NULL) return -1; - *info = (struct corinfo) { 0 }; - - if (__cpu_info(info) == -1) return -1; - if (__ram_info(info) == -1) return -1; - if (__hdd_info(info) == -1) return -1; - - return 0; - } #endif @@ -321,20 +309,22 @@ static int __hdd_info(struct corinfo* info); return 0; } - - int corinfo_GetInfo(struct corinfo* info) - { - if (info == NULL) return -1; - *info = (struct corinfo) { 0 }; - - if (__cpu_info(info) == -1) return -1; - if (__ram_info(info) == -1) return -1; - if (__hdd_info(info) == -1) return -1; - - return 0; - } #endif + +int corinfo_GetInfo(struct corinfo* info) +{ + if (info == NULL) return -1; + *info = (struct corinfo) { 0 }; + + if (__cpu_info(info) == -1) return -1; + if (__ram_info(info) == -1) return -1; + if (__hdd_info(info) == -1) return -1; + + return 0; +} + + #endif