diff options
author | Guillem Jover <guillem@hadrons.org> | 2009-12-17 14:39:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2009-12-18 11:56:45 +0100 |
commit | 40f8b441bb161cd09ff8210944e18995b2d2019f (patch) | |
tree | d62de381f43695a9d28f19c7adc52d721bd70dd0 /linux/src | |
parent | 296a9380f5dde4514890d1409bd140db91f60adb (diff) |
Use `unsigned char *' for byte buffers
* linux/src/drivers/net/apricot.c (struct i596_tbd): Change `data'
member type to `unsigned char *'.
(struct i596_rfd): Change `data' member type to `unsigned char'.
(print_eth): Change argument type to `unsigned char'. Remove
unneeded casts.
(set_multicast_list): Change cast for print_eth to `unsigned char *'.
Diffstat (limited to 'linux/src')
-rw-r--r-- | linux/src/drivers/net/apricot.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linux/src/drivers/net/apricot.c b/linux/src/drivers/net/apricot.c index 0799f62..d106e50 100644 --- a/linux/src/drivers/net/apricot.c +++ b/linux/src/drivers/net/apricot.c @@ -98,7 +98,7 @@ struct i596_tbd { unsigned short size; unsigned short pad; struct i596_tbd *next; - char *data; + unsigned char *data; }; struct tx_cmd { @@ -115,7 +115,7 @@ struct i596_rfd { long rbd; unsigned short count; unsigned short size; - char data[1532]; + unsigned char data[1532]; }; #define RX_RING_SIZE 8 @@ -187,7 +187,7 @@ static void i596_interrupt(int irq, void *dev_id, struct pt_regs *regs); static int i596_close(struct device *dev); static struct enet_statistics *i596_get_stats(struct device *dev); static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); -static void print_eth(char *); +static void print_eth(unsigned char *); static void set_multicast_list(struct device *dev); @@ -659,20 +659,20 @@ i596_start_xmit(struct sk_buff *skb, struct device *dev) } -static void print_eth(char *add) +static void print_eth(unsigned char *add) { int i; printk ("Dest "); for (i = 0; i < 6; i++) - printk(" %2.2X", (unsigned char)add[i]); + printk(" %2.2X", add[i]); printk ("\n"); printk ("Source"); for (i = 0; i < 6; i++) - printk(" %2.2X", (unsigned char)add[i+6]); + printk(" %2.2X", add[i+6]); printk ("\n"); - printk ("type %2.2X%2.2X\n", (unsigned char)add[12], (unsigned char)add[13]); + printk ("type %2.2X%2.2X\n", add[12], add[13]); } int apricot_probe(struct device *dev) @@ -980,7 +980,7 @@ static void set_multicast_list(struct device *dev) memcpy(cp, dmi,6); cp+=6; } - print_eth (((char *)(cmd + 1)) + 2); + print_eth (((unsigned char *)(cmd + 1)) + 2); i596_add_cmd(dev, cmd); } else |