Skip to content

Commit 04f5abb

Browse files
mardyDacoTaco
authored andcommitted
network_wii: use IOCTL constant instead of magic number
1 parent 2ae6cac commit 04f5abb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libogc/network_wii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ s32 if_configex(struct in_addr *local_ip, struct in_addr *netmask, struct in_add
13231323
vectors[1].data = routing_tables;
13241324
vectors[1].len = memory_size;
13251325

1326-
ret = IOS_Ioctlv(net_ip_top_fd, 28, 1, 2, vectors);
1326+
ret = IOS_Ioctlv(net_ip_top_fd, IOCTLV_SO_GETINTERFACEOPT, 1, 2, vectors);
13271327
if(ret < 0)
13281328
{
13291329
debug_printf("failed to get the routing table: %d\n", ret);

0 commit comments

Comments
 (0)