[PATCH 2.4] various size fixes

From: O.Sezer
Date: Fri Aug 13 2004 - 13:58:56 EST


Misc size fixes which also cure some compiler warnings.

Özkan Sezer

--- 27rc5~/include/linux/scc.h 2001-04-12 22:20:31.000000000 +0300
+++ 27rc5/include/linux/scc.h 2004-08-07 14:09:39.000000000 +0300
@@ -200,7 +200,7 @@
unsigned char fulldup; /* Full Duplex mode 0=CSMA 1=DUP 2=ALWAYS KEYED */
unsigned char waittime; /* Waittime before any transmit attempt */
unsigned int maxkeyup; /* Maximum time to transmit (seconds) */
- unsigned char mintime; /* Minimal offtime after MAXKEYUP timeout (seconds) */
+ unsigned int mintime; /* Minimal offtime after MAXKEYUP timeout (seconds) */
unsigned int idletime; /* Maximum idle time in ALWAYS KEYED mode (seconds) */
unsigned int maxdefer; /* Timer for CSMA channel busy limit */
unsigned char tx_inhibit; /* Transmit is not allowed when set */
--- 27rc5~/drivers/hotplug/cpqphp_pci.c 2003-11-28 20:26:20.000000000 +0200
+++ 27rc5/drivers/hotplug/cpqphp_pci.c 2004-08-07 14:09:39.000000000 +0300
@@ -387,7 +387,8 @@

static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 * dev_num)
{
- u8 tdevice;
+ u16 tdevice;
u32 work;
u8 tbus;

--- 27rc5~/drivers/isdn/eicon/fourbri.c 2001-09-30 22:26:05.000000000 +0300
+++ 27rc5/drivers/isdn/eicon/fourbri.c 2004-08-07 14:09:39.000000000 +0300
@@ -337,7 +337,8 @@
static int diva_server_4bri_start(card_t *card, byte *channels)
{
byte *ctl;
- byte *shared, i;
+ byte *shared;
+ int i;
int adapter_num;

DPRINTF(("divas: start Diva Server 4BRI"));
--- 27rc5~/drivers/net/tokenring/3c359.c 2003-06-13 17:51:35.000000000 +0300
+++ 27rc5/drivers/net/tokenring/3c359.c 2004-08-07 14:09:39.000000000 +0300
@@ -389,7 +389,7 @@
struct xl_private *xl_priv = (struct xl_private *)dev->priv ;
u8 *xl_mmio = xl_priv->xl_mmio ;
unsigned long t ;
- u16 i ;
+ u32 i ;
u16 result_16 ;
u8 result_8 ;
u16 start ;