aha1742.c:

Cleanse the SCSI subsystem of its internally defined types
		u_int32, u_int16, u_int8, int32, int16, int8.
		Use the system defined *_t types instead.

eisaconf.c:
	Cosmetic formatting chagnes.
This commit is contained in:
Justin T. Gibbs 1996-03-10 07:04:27 +00:00
parent 75f0b9d070
commit e4f25ddc16
3 changed files with 13 additions and 13 deletions

View File

@ -18,7 +18,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
* $Id: eisaconf.c,v 1.15 1996/01/31 18:46:36 gibbs Exp $
* $Id: eisaconf.c,v 1.16 1996/02/26 01:01:41 gibbs Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@ -146,7 +146,7 @@ eisa_configure()
* be responsible for creating the list of devices in the system
* for the configuration manager to use.
*/
e_dev->full_name = (char *)malloc(10*sizeof(char),
e_dev->full_name = (char *)malloc(8*sizeof(char),
M_DEVBUF, M_NOWAIT);
if (!e_dev->full_name) {
panic("Eisa probe unable to malloc");
@ -335,14 +335,14 @@ eisa_reg_print(e_dev, string, separator)
{
int len = strlen(string);
if( separator )
if(separator)
len++;
if(reg_state.column + len > MAX_COL) {
printf("\n");
reg_state.column = 0;
}
else if( separator ) {
else if(separator) {
printf("%c", *separator);
reg_state.column++;
}

View File

@ -14,7 +14,7 @@
*
* commenced: Sun Sep 27 18:14:01 PDT 1992
*
* $Id: aha1742.c,v 1.50 1996/01/31 18:02:16 gibbs Exp $
* $Id: aha1742.c,v 1.51 1996/02/26 01:01:38 gibbs Exp $
*/
#include <sys/types.h>
@ -260,7 +260,7 @@ struct ahb_data {
int numecbs;
};
static u_int32 ahb_adapter_info __P((int unit));
static u_int32_t ahb_adapter_info __P((int unit));
static struct ahb_data *
ahb_alloc __P((int unit, u_long iobase, int irq));
static int ahb_attach __P((struct eisa_device *dev));
@ -284,7 +284,7 @@ static void ahb_print_ecb __P((struct ecb *ecb));
#endif
static int ahbprobe __P((void));
static int ahb_reset __P((u_long port));
static int32 ahb_scsi_cmd __P((struct scsi_xfer *xs));
static int32_t ahb_scsi_cmd __P((struct scsi_xfer *xs));
static void ahb_send_immed __P((struct ahb_data *ahb, int target,
u_long cmd));
static void ahb_send_mbox __P((struct ahb_data *ahb, int opcode, int target,
@ -688,7 +688,7 @@ ahb_bus_attach(ahb)
* Return some information to the caller about
* the adapter and it's capabilities
*/
static u_int32
static u_int32_t
ahb_adapter_info(unit)
int unit;
{
@ -1027,7 +1027,7 @@ ahbminphys(bp)
* the data address. Also needs the unit, target
* and lu
*/
static int32
static int32_t
ahb_scsi_cmd(xs)
struct scsi_xfer *xs;
{

View File

@ -18,7 +18,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
* $Id: eisaconf.c,v 1.15 1996/01/31 18:46:36 gibbs Exp $
* $Id: eisaconf.c,v 1.16 1996/02/26 01:01:41 gibbs Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@ -146,7 +146,7 @@ eisa_configure()
* be responsible for creating the list of devices in the system
* for the configuration manager to use.
*/
e_dev->full_name = (char *)malloc(10*sizeof(char),
e_dev->full_name = (char *)malloc(8*sizeof(char),
M_DEVBUF, M_NOWAIT);
if (!e_dev->full_name) {
panic("Eisa probe unable to malloc");
@ -335,14 +335,14 @@ eisa_reg_print(e_dev, string, separator)
{
int len = strlen(string);
if( separator )
if(separator)
len++;
if(reg_state.column + len > MAX_COL) {
printf("\n");
reg_state.column = 0;
}
else if( separator ) {
else if(separator) {
printf("%c", *separator);
reg_state.column++;
}