1
0
Fork 0
forked from suyu/suyu

chore: fix some typos

Fix some typos reported by Lintian
This commit is contained in:
Andrea Pappacoda 2022-09-23 13:38:23 +02:00
parent 8d4458ef24
commit 4a493cb10f
No known key found for this signature in database
GPG key ID: 4A9208A2455077A7
5 changed files with 6 additions and 6 deletions

View file

@ -800,12 +800,12 @@ Result Module::Interface::Flush() {
// Return to the start of the file // Return to the start of the file
if (!amiibo_file.Seek(0)) { if (!amiibo_file.Seek(0)) {
LOG_ERROR(Service_NFP, "Error writting to file"); LOG_ERROR(Service_NFP, "Error writing to file");
return ErrCodes::WriteAmiiboFailed; return ErrCodes::WriteAmiiboFailed;
} }
if (!amiibo_file.Write(encrypted_tag_data)) { if (!amiibo_file.Write(encrypted_tag_data)) {
LOG_ERROR(Service_NFP, "Error writting to file"); LOG_ERROR(Service_NFP, "Error writing to file");
return ErrCodes::WriteAmiiboFailed; return ErrCodes::WriteAmiiboFailed;
} }

View file

@ -929,7 +929,7 @@ BSD::BSD(Core::System& system_, const char* name)
proxy_packet_received = room_member->BindOnProxyPacketReceived( proxy_packet_received = room_member->BindOnProxyPacketReceived(
[this](const Network::ProxyPacket& packet) { OnProxyPacketReceived(packet); }); [this](const Network::ProxyPacket& packet) { OnProxyPacketReceived(packet); });
} else { } else {
LOG_ERROR(Service, "Network isn't initalized"); LOG_ERROR(Service, "Network isn't initialized");
} }
} }

View file

@ -15,7 +15,7 @@ RoomNetwork::RoomNetwork() {
bool RoomNetwork::Init() { bool RoomNetwork::Init() {
if (enet_initialize() != 0) { if (enet_initialize() != 0) {
LOG_ERROR(Network, "Error initalizing ENet"); LOG_ERROR(Network, "Error initializing ENet");
return false; return false;
} }
m_room = std::make_shared<Room>(); m_room = std::make_shared<Room>();

View file

@ -175,7 +175,7 @@ bool IsReference(IR::Inst& inst) {
} }
void PrecolorInst(IR::Inst& phi) { void PrecolorInst(IR::Inst& phi) {
// Insert phi moves before references to avoid overwritting other phis // Insert phi moves before references to avoid overwriting other phis
const size_t num_args{phi.NumArgs()}; const size_t num_args{phi.NumArgs()};
for (size_t i = 0; i < num_args; ++i) { for (size_t i = 0; i < num_args; ++i) {
IR::Block& phi_block{*phi.PhiBlock(i)}; IR::Block& phi_block{*phi.PhiBlock(i)};

View file

@ -101,7 +101,7 @@ bool IsReference(IR::Inst& inst) {
} }
void PrecolorInst(IR::Inst& phi) { void PrecolorInst(IR::Inst& phi) {
// Insert phi moves before references to avoid overwritting other phis // Insert phi moves before references to avoid overwriting other phis
const size_t num_args{phi.NumArgs()}; const size_t num_args{phi.NumArgs()};
for (size_t i = 0; i < num_args; ++i) { for (size_t i = 0; i < num_args; ++i) {
IR::Block& phi_block{*phi.PhiBlock(i)}; IR::Block& phi_block{*phi.PhiBlock(i)};