mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.98][Refactoring] Unify the use of unknown string
This commit is contained in:
@@ -13,8 +13,6 @@
|
||||
#include "uarch.h"
|
||||
#include "soc.h"
|
||||
|
||||
#define STRING_UNKNOWN "Unknown"
|
||||
|
||||
void init_cache_struct(struct cache* cach) {
|
||||
cach->L1i = emalloc(sizeof(struct cach));
|
||||
cach->L1d = emalloc(sizeof(struct cach));
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "../common/global.h"
|
||||
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#define STRING_UNKNOWN "Unknown"
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
static char* soc_trademark_string[] = {
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include "uarch.h"
|
||||
#include "../common/global.h"
|
||||
|
||||
#define STRING_UNKNOWN "Unknown"
|
||||
|
||||
// Data not available
|
||||
#define NA -1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user