Fix most of the WARNS=2 warnings.

This commit is contained in:
Ruslan Ermilov 2006-09-29 20:27:41 +00:00
parent f3088510e2
commit 6dcf625c41
4 changed files with 5 additions and 6 deletions

View File

@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <bootstrap.h>
#include <isapnp.h>
#include <btxv86.h>
#include "libi386.h"
/*
* Stupid PCI BIOS interface doesn't let you simply enumerate everything

View File

@ -143,9 +143,7 @@ bi_load64(char *args, vm_offset_t *modulep, vm_offset_t *kernendp)
u_int64_t envp;
vm_offset_t size;
char *rootdevname;
int i, howto;
char *kernelname;
const char *kernelpath;
int howto;
howto = bi_getboothowto(args);

View File

@ -61,7 +61,7 @@ extern p2_entry_t PT2[];
u_int32_t entry_hi;
u_int32_t entry_lo;
extern amd64_tramp();
extern void amd64_tramp();
/*
* There is an a.out kernel and one or more a.out modules loaded.

View File

@ -96,8 +96,8 @@ extern vm_offset_t memtop_copyin; /* memtop less heap size for the cases */
/* when heap is at the top of extended memory */
/* for other cases - just the same as memtop */
int biospci_find_devclass(uint32_t class, int index);
int biospci_write_config(uint32_t locator, int offset, int width, int val);
int biospci_find_devclass(uint32_t class, int index, uint32_t *locator);
int biospci_write_config(uint32_t locator, int offset, int width, uint32_t val);
int biospci_read_config(uint32_t locator, int offset, int width, uint32_t *val);
void biosacpi_detect(void);