Skip to content

Commit

Permalink
[PATCH] ipw2100 old gcc fix
Browse files Browse the repository at this point in the history
drivers/net/wireless/ipw2100.c: In function `ipw2100_set_key_index':
drivers/net/wireless/ipw2100.c:5326: array index in non-array initializer
drivers/net/wireless/ipw2100.c:5326: (near initialization for `cmd')
drivers/net/wireless/ipw2100.c:5326: warning: missing braces around initializer
drivers/net/wireless/ipw2100.c:5326: warning: (near initialization for `cmd.host_command_parameters')

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Jun 28, 2005
1 parent 8724a11 commit 011fe95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -5305,7 +5305,7 @@ static int ipw2100_set_key_index(struct ipw2100_priv *priv,
.host_command = WEP_KEY_INDEX,
.host_command_sequence = 0,
.host_command_length = 4,
.host_command_parameters[0] = idx,
.host_command_parameters = { idx },
};
int err;

Expand Down

0 comments on commit 011fe95

Please sign in to comment.