Browse Source

cpuid: use uint32_t instead of int/unsigned

Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
Ahmed Samy 12 years ago
parent
commit
2df53ae1a1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ccan/cpuid/cpuid.c

+ 3 - 3
ccan/cpuid/cpuid.c

@@ -62,8 +62,8 @@ static void ___cpuid(cpuid_t info, uint32_t *eax, uint32_t *ebx, uint32_t *ecx,
 #endif
 #endif
 
 
 static struct {
 static struct {
-	int feature;
-	unsigned mask;
+	uint32_t feature;
+	uint32_t mask;
 	bool use_edx; 		/* ecx will be used if false.  */
 	bool use_edx; 		/* ecx will be used if false.  */
 } features[] = {
 } features[] = {
 	{ CF_MMX, 		1 << 23, 	true },
 	{ CF_MMX, 		1 << 23, 	true },
@@ -152,7 +152,7 @@ bool cpuid_has_feature(int feature, bool extended)
 	return has_feature(feature, ecx, edx);
 	return has_feature(feature, ecx, edx);
 }
 }
 
 
-static const char *cpuids[] = {
+static const char *const cpuids[] = {
 	"Nooooooooone",
 	"Nooooooooone",
 	"AMDisbetter!",
 	"AMDisbetter!",
 	"AuthenticAMD",
 	"AuthenticAMD",