Started fixing up compilation warnings.

This commit is contained in:
Michael Brown
2007-08-17 20:34:48 +01:00
parent d0974ec716
commit 9d2c54735e
9 changed files with 33 additions and 38 deletions

View File

@@ -542,7 +542,10 @@ static int cmd_mgid_hash(__u8 * gid, __u16 * mgid_hash_p)
{
int rc;
command_fields_t cmd_desc;
__u16 result[2];
union {
__u32 u32;
__u16 u16[2];
} result;
memset(&cmd_desc, 0, sizeof cmd_desc);
@@ -554,9 +557,9 @@ static int cmd_mgid_hash(__u8 * gid, __u16 * mgid_hash_p)
rc = cmd_invoke(&cmd_desc);
if (!rc) {
rc = gw_read_cr(HCR_BASE + 16, (__u32 *) result);
rc = gw_read_cr(HCR_BASE + 16, &result.u32);
if (!rc) {
*mgid_hash_p = result[0];
*mgid_hash_p = result.u16[0];
}
}