Remove redundant elaborated type specifiers

This commit is contained in:
Dr. Dystopia 2024-08-13 11:23:41 +02:00
parent 5af0ae25e6
commit 0aa8e0f477
7 changed files with 12 additions and 12 deletions

View File

@ -834,7 +834,7 @@ BbaTcpSocket::ConnectingState BbaTcpSocket::Connected(StackRef* ref)
fd_set read_fds; fd_set read_fds;
fd_set write_fds; fd_set write_fds;
fd_set except_fds; fd_set except_fds;
struct timeval t = {0, 0}; timeval t = {0, 0};
FD_ZERO(&read_fds); FD_ZERO(&read_fds);
FD_ZERO(&write_fds); FD_ZERO(&write_fds);
FD_ZERO(&except_fds); FD_ZERO(&except_fds);
@ -965,7 +965,7 @@ sf::Socket::Status BbaUdpSocket::Bind(u16 port, u32 net_ip)
// Subscribe to the SSDP multicast group // Subscribe to the SSDP multicast group
// NB: Other groups aren't supported because of HLE // NB: Other groups aren't supported because of HLE
struct ip_mreq mreq; ip_mreq mreq;
mreq.imr_multiaddr.s_addr = std::bit_cast<u32>(Common::IP_ADDR_SSDP); mreq.imr_multiaddr.s_addr = std::bit_cast<u32>(Common::IP_ADDR_SSDP);
mreq.imr_interface.s_addr = net_ip; mreq.imr_interface.s_addr = net_ip;
if (setsockopt(getHandle(), IPPROTO_IP, IP_ADD_MEMBERSHIP, reinterpret_cast<const char*>(&mreq), if (setsockopt(getHandle(), IPPROTO_IP, IP_ADD_MEMBERSHIP, reinterpret_cast<const char*>(&mreq),

View File

@ -197,8 +197,8 @@ void init_lib()
namespace WiimoteReal namespace WiimoteReal
{ {
int IOWrite(HANDLE& dev_handle, OVERLAPPED& hid_overlap_write, enum WinWriteMethod& stack, int IOWrite(HANDLE& dev_handle, OVERLAPPED& hid_overlap_write, WinWriteMethod& stack, const u8* buf,
const u8* buf, size_t len, DWORD* written); size_t len, DWORD* written);
int IORead(HANDLE& dev_handle, OVERLAPPED& hid_overlap_read, u8* buf, int index); int IORead(HANDLE& dev_handle, OVERLAPPED& hid_overlap_read, u8* buf, int index);
template <typename T> template <typename T>

View File

@ -623,7 +623,7 @@ IPCReply NetIPTopDevice::HandleInetAToNRequest(const IOCtlRequest& request)
auto& memory = system.GetMemory(); auto& memory = system.GetMemory();
const std::string hostname = memory.GetString(request.buffer_in); const std::string hostname = memory.GetString(request.buffer_in);
struct hostent* remoteHost = gethostbyname(hostname.c_str()); hostent* remoteHost = gethostbyname(hostname.c_str());
if (remoteHost == nullptr || remoteHost->h_addr_list == nullptr || if (remoteHost == nullptr || remoteHost->h_addr_list == nullptr ||
remoteHost->h_addr_list[0] == nullptr) remoteHost->h_addr_list[0] == nullptr)

View File

@ -27,7 +27,7 @@
static DRESULT read_vff_header(IOS::HLE::FS::FileHandle* vff, FATFS* fs) static DRESULT read_vff_header(IOS::HLE::FS::FileHandle* vff, FATFS* fs)
{ {
struct IOS::HLE::NWC24::VFFHeader header; IOS::HLE::NWC24::VFFHeader header;
if (!vff->Read(&header, 1)) if (!vff->Read(&header, 1))
{ {
ERROR_LOG_FMT(IOS_WC24, "Failed to read VFF header."); ERROR_LOG_FMT(IOS_WC24, "Failed to read VFF header.");

View File

@ -770,7 +770,7 @@ WiiSocket::ConnectingState WiiSocket::GetConnectingState() const
fd_set read_fds; fd_set read_fds;
fd_set write_fds; fd_set write_fds;
fd_set except_fds; fd_set except_fds;
struct timeval t = {0, 0}; timeval t = {0, 0};
FD_ZERO(&read_fds); FD_ZERO(&read_fds);
FD_ZERO(&write_fds); FD_ZERO(&write_fds);
FD_ZERO(&except_fds); FD_ZERO(&except_fds);
@ -998,7 +998,7 @@ void WiiSockMan::Update()
{ {
s32 nfds = 0; s32 nfds = 0;
fd_set read_fds, write_fds, except_fds; fd_set read_fds, write_fds, except_fds;
struct timeval t = {0, 0}; timeval t = {0, 0};
FD_ZERO(&read_fds); FD_ZERO(&read_fds);
FD_ZERO(&write_fds); FD_ZERO(&write_fds);
FD_ZERO(&except_fds); FD_ZERO(&except_fds);

View File

@ -2505,7 +2505,7 @@ struct hci_filter
uint32_t mask[8]; /* 256 bits */ uint32_t mask[8]; /* 256 bits */
}; };
static __inline void hci_filter_set(uint8_t bit, struct hci_filter* filter) static __inline void hci_filter_set(uint8_t bit, hci_filter* filter)
{ {
uint8_t off = bit - 1; uint8_t off = bit - 1;
@ -2513,7 +2513,7 @@ static __inline void hci_filter_set(uint8_t bit, struct hci_filter* filter)
filter->mask[off] |= (1 << ((bit - 1) & 0x1f)); filter->mask[off] |= (1 << ((bit - 1) & 0x1f));
} }
static __inline void hci_filter_clr(uint8_t bit, struct hci_filter* filter) static __inline void hci_filter_clr(uint8_t bit, hci_filter* filter)
{ {
uint8_t off = bit - 1; uint8_t off = bit - 1;
@ -2581,7 +2581,7 @@ struct btreq
uint16_t btri_link_policy; /* Link Policy */ uint16_t btri_link_policy; /* Link Policy */
uint16_t btri_packet_type; /* Packet Type */ uint16_t btri_packet_type; /* Packet Type */
} btri; } btri;
struct bt_stats btrs; /* unit stats */ bt_stats btrs; /* unit stats */
} btru; } btru;
}; };

View File

@ -258,7 +258,7 @@ static void ReadCommand()
static bool IsDataAvailable() static bool IsDataAvailable()
{ {
struct timeval t; timeval t;
fd_set _fds, *fds = &_fds; fd_set _fds, *fds = &_fds;
FD_ZERO(fds); FD_ZERO(fds);