]> git.ozlabs.org Git - ccan/commitdiff
cpuid: use uint32_t instead of int/unsigned
authorAhmed Samy <f.fallen45@gmail.com>
Thu, 26 Sep 2013 13:59:55 +0000 (13:59 +0000)
committerAhmed Samy <f.fallen45@gmail.com>
Thu, 26 Sep 2013 13:59:55 +0000 (13:59 +0000)
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
ccan/cpuid/cpuid.c

index d6d27799e9383ae0b777a225691358c67857cd69..8b2024cbf6243ca280b0a15d9f6553a18457407f 100644 (file)
@@ -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",