From 3a3136774957e2968e51e488a8522d0a872afbd2 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 9 Mar 2025 14:07:52 +0300 Subject: [PATCH] cpuid_vendor_id.mod.c: reformat: replace `unsigned int *` to `unsigned*` --- c-programming/sys/cpuid_vendor_id.mod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c-programming/sys/cpuid_vendor_id.mod.c b/c-programming/sys/cpuid_vendor_id.mod.c index 11a1473..9e722bf 100644 --- a/c-programming/sys/cpuid_vendor_id.mod.c +++ b/c-programming/sys/cpuid_vendor_id.mod.c @@ -71,9 +71,9 @@ static inline void cpuid_vendor_id(char vendor[VENDOR_ID_LEN]) { // https://learn.microsoft.com/en-us/cpp/intrinsics/cpuid-cpuidex // ?view=msvc-170#example - ((unsigned int *) vendor)[0] = v[EBX]; - ((unsigned int *) vendor)[1] = v[EDX]; - ((unsigned int *) vendor)[2] = v[ECX]; + ((unsigned*) vendor)[0] = v[EBX]; + ((unsigned*) vendor)[1] = v[EDX]; + ((unsigned*) vendor)[2] = v[ECX]; vendor[VENDOR_ID_LEN - 1] = '\0'; }