Skip to content

Commit 475da95

Browse files
committed
network_wii: fix incorrect STACK_ALIGN usage
1 parent 817e261 commit 475da95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libogc/network_wii.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,9 @@ s32 if_configex(struct in_addr *local_ip, struct in_addr *netmask, struct in_add
12561256
{
12571257
s32 i,ret;
12581258
const u32 ipconfig_size = sizeof(struct getinterfaceopt_ipconfig);
1259-
STACK_ALIGN(ioctlv, vectors, sizeof(ioctlv)*3, 32);
1260-
STACK_ALIGN(struct getinterfaceopt_params, params, sizeof(struct getinterfaceopt_params), 32);
1261-
STACK_ALIGN(struct getinterfaceopt_ipconfig, ipconfig, ipconfig_size, 32);
1259+
STACK_ALIGN(ioctlv, vectors, 3, 32);
1260+
STACK_ALIGN(struct getinterfaceopt_params, params, 1, 32);
1261+
STACK_ALIGN(struct getinterfaceopt_ipconfig, ipconfig, 1, 32);
12621262
static u32 response __attribute__((aligned(32)));
12631263
static u32 table_size __attribute__((aligned(32)));
12641264

0 commit comments

Comments
 (0)