Smaller fixes to allow using -Wall (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3181 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann
2008-03-20 20:05:22 +00:00
parent 6a441bfb46
commit 35845a2acb
5 changed files with 23 additions and 18 deletions

View File

@@ -92,7 +92,6 @@ static unsigned int cpu_khz;
void decode_flags(WINDOW *win, unsigned long reg, const char **flags, int *row)
{
int index = 0;
int i;
int lrow = *row;
@@ -117,7 +116,6 @@ void decode_flags(WINDOW *win, unsigned long reg, const char **flags, int *row)
static void get_features(WINDOW *win, int *row)
{
unsigned long eax, ebx, ecx, edx;
int index = 0;
int lrow = *row;
wmove(win, lrow++, 1);
@@ -152,7 +150,7 @@ static void get_features(WINDOW *win, int *row)
static void do_name(WINDOW *win, int row)
{
char str[80], name[49], *p;
char name[49], *p;
unsigned long eax, ebx, ecx, edx;
int i, t;
@@ -177,11 +175,11 @@ static void do_name(WINDOW *win, int row)
mvwprintw(win, row, 1, "Processor: %s", name);
}
int cpuinfo_module_redraw(WINDOW * win)
int cpuinfo_module_redraw(WINDOW *win)
{
unsigned long eax, ebx, ecx, edx;
unsigned int brand;
char str[80], *vstr;
char *vstr;
int row = 2;
print_module_title(win, "CPU Information");
@@ -210,6 +208,10 @@ int cpuinfo_module_redraw(WINDOW * win)
break;
case VENDOR_SIS:
vstr = "SiS";
break;
default:
vstr = "Unknown";
break;
}
mvwprintw(win, row++, 1, "Vendor: %s", vstr);
@@ -238,6 +240,8 @@ int cpuinfo_module_redraw(WINDOW * win)
row++;
get_features(win, &row);
return 0;
}
unsigned int getticks(void)
@@ -255,6 +259,7 @@ unsigned int getticks(void)
int cpuinfo_module_init(void)
{
cpu_khz = getticks();
return 0;
}
struct coreinfo_module cpuinfo_module = {