From 2df53ae1a1705474cd776d24b03f12818f77b232 Mon Sep 17 00:00:00 2001 From: Ahmed Samy Date: Thu, 26 Sep 2013 13:59:55 +0000 Subject: [PATCH] cpuid: use uint32_t instead of int/unsigned Signed-off-by: Ahmed Samy --- ccan/cpuid/cpuid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccan/cpuid/cpuid.c b/ccan/cpuid/cpuid.c index d6d27799..8b2024cb 100644 --- a/ccan/cpuid/cpuid.c +++ b/ccan/cpuid/cpuid.c @@ -62,8 +62,8 @@ static void ___cpuid(cpuid_t info, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, #endif static struct { - int feature; - unsigned mask; + uint32_t feature; + uint32_t mask; bool use_edx; /* ecx will be used if false. */ } features[] = { { CF_MMX, 1 << 23, true }, @@ -152,7 +152,7 @@ bool cpuid_has_feature(int feature, bool extended) return has_feature(feature, ecx, edx); } -static const char *cpuids[] = { +static const char *const cpuids[] = { "Nooooooooone", "AMDisbetter!", "AuthenticAMD", -- 2.39.2