From 10b4e46179cc7ea01981f44eb3376cd3e9e4809a Mon Sep 17 00:00:00 2001 From: Xorg Date: Sun, 25 Sep 2022 10:11:39 +0200 Subject: [PATCH] Fix typo in variable name --- libcpuid/cpuid_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libcpuid/cpuid_main.c b/libcpuid/cpuid_main.c index 0c5a25e..8aa96c1 100644 --- a/libcpuid/cpuid_main.c +++ b/libcpuid/cpuid_main.c @@ -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"; }