mirror of
https://github.com/anrieff/libcpuid
synced 2025-02-12 20:24:05 +00:00
Fix typo in variable name
This commit is contained in:
parent
871840f8e5
commit
10b4e46179
1 changed files with 5 additions and 5 deletions
|
@ -40,16 +40,16 @@
|
|||
/* Implementation: */
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ == 201112L
|
||||
_Thread_local int _libcpiud_errno = ERR_OK;
|
||||
_Thread_local int _libcpuid_errno = ERR_OK;
|
||||
#elif defined(__GNUC__) // Also works for clang
|
||||
__thread int _libcpiud_errno = ERR_OK;
|
||||
__thread int _libcpuid_errno = ERR_OK;
|
||||
#else
|
||||
static int _libcpiud_errno = ERR_OK;
|
||||
static int _libcpuid_errno = ERR_OK;
|
||||
#endif
|
||||
|
||||
int set_error(cpu_error_t err)
|
||||
{
|
||||
_libcpiud_errno = (int) err;
|
||||
_libcpuid_errno = (int) err;
|
||||
return (int) err;
|
||||
}
|
||||
|
||||
|
@ -1382,7 +1382,7 @@ const char* cpuid_error(void)
|
|||
};
|
||||
unsigned i;
|
||||
for (i = 0; i < COUNT_OF(matchtable); i++)
|
||||
if (_libcpiud_errno == matchtable[i].error)
|
||||
if (_libcpuid_errno == matchtable[i].error)
|
||||
return matchtable[i].description;
|
||||
return "Unknown error";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue