Applied clang-format-18 to codebase

This commit is contained in:
OpenSauce04
2024-11-10 21:02:54 +00:00
parent 3e02c29225
commit fd55b4fd6c
148 changed files with 1028 additions and 1029 deletions

View File

@@ -15,13 +15,13 @@ namespace Network {
#ifndef htonll
u64 htonll(u64 x) {
return ((1 == htonl(1)) ? (x) : ((uint64_t)htonl((x)&0xFFFFFFFF) << 32) | htonl((x) >> 32));
return ((1 == htonl(1)) ? (x) : ((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32));
}
#endif
#ifndef ntohll
u64 ntohll(u64 x) {
return ((1 == ntohl(1)) ? (x) : ((uint64_t)ntohl((x)&0xFFFFFFFF) << 32) | ntohl((x) >> 32));
return ((1 == ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32));
}
#endif

View File

@@ -35,11 +35,11 @@ struct WifiPacket {
private:
template <class Archive>
void serialize(Archive& ar, const unsigned int) {
ar& type;
ar& data;
ar& transmitter_address;
ar& destination_address;
ar& channel;
ar & type;
ar & data;
ar & transmitter_address;
ar & destination_address;
ar & channel;
}
friend class boost::serialization::access;
};