Skip to content
Permalink
Browse files

Some fixes for function cpu_vendor()

  • Loading branch information...
X0rg committed Oct 12, 2015
1 parent b63e48e commit 63907cc7e4605643c5d5452cb7e88e278b3a85d2
Showing with 3 additions and 3 deletions.
  1. +2 −2 libcpuid/libcpuid_util.c
  2. +1 −1 libcpuid/libcpuid_util.h
@@ -174,7 +174,7 @@ int match_pattern(const char* s, const char* p)
return 0;
}

int cpu_vendor(void)
cpu_vendor_t cpu_vendor(void)
{
int r;
struct cpu_raw_data_t raw;
@@ -186,7 +186,7 @@ int cpu_vendor(void)
if (0 <= data.vendor && data.vendor < NUM_CPU_VENDORS)
return data.vendor;
else
return set_error(r);
return VENDOR_UNKNOWN;
}

struct cpu_id_t* get_cached_cpuid(void)
@@ -74,7 +74,7 @@ int match_pattern(const char* haystack, const char* pattern);
* Get the CPU vendor
* Return val: see enum cpu_vendor_t
*/
int cpu_vendor(void);
cpu_vendor_t cpu_vendor(void);

/*
* Gets an initialized cpu_id_t. It is cached, so that internal libcpuid

0 comments on commit 63907cc

Please sign in to comment.
You can’t perform that action at this time.