Fix various typos

Found via codespell
This commit is contained in:
Kunda Ki
2025-09-06 19:42:25 +00:00
parent f8d23a160a
commit 5f49bb6951
7 changed files with 11 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ This message should be the first message send, and never at a later time. Its fo
| 19 bytes (UUID ignored) | 2 bytes (Big-Endian) | 2 bytes (Big-Endian) | Remaining data bytes |
```
This message should be the first message to send. Use the maximum version supported by both endpoints (if any), or otherwise close the connection. The other data field is not used (and should be empty for protocol version 1), but it implies that message lengths of more than 4 need to be supported for future compatability.
This message should be the first message to send. Use the maximum version supported by both endpoints (if any), or otherwise close the connection. The other data field is not used (and should be empty for protocol version 1), but it implies that message lengths of more than 4 need to be supported for future compatibility.
Currently, no client will send this message with a version other than 1, but you *must* accept and check it, for forward compatibility.

View File

@@ -221,12 +221,12 @@ static inline size_t
mdns_socket_listen(int sock, void* buffer, size_t capacity, mdns_record_callback_fn callback,
void* user_data);
//! Send a multicast DNS-SD reqeuest on the given socket to discover available services. Returns 0
//! Send a multicast DNS-SD request on the given socket to discover available services. Returns 0
//! on success, or <0 if error.
static inline int
mdns_discovery_send(int sock);
//! Recieve unicast responses to a DNS-SD sent with mdns_discovery_send. Any data will be piped to
//! Receive unicast responses to a DNS-SD sent with mdns_discovery_send. Any data will be piped to
//! the given callback for parsing. Buffer must be 32 bit aligned. Parsing is stopped when callback
//! function returns non-zero. Returns the number of responses parsed.
static inline size_t
@@ -266,9 +266,9 @@ mdns_query_recv(int sock, void* buffer, size_t capacity, mdns_record_callback_fn
//! Send a variable unicast mDNS query answer to any question with variable number of records to the
//! given address. Use the top bit of the query class field (MDNS_UNICAST_RESPONSE) in the query
//! recieved to determine if the answer should be sent unicast (bit set) or multicast (bit not set).
//! received to determine if the answer should be sent unicast (bit set) or multicast (bit not set).
//! Buffer must be 32 bit aligned. The record type and name should match the data from the query
//! recieved. Returns 0 if success, or <0 if error.
//! received. Returns 0 if success, or <0 if error.
static inline int
mdns_query_answer_unicast(int sock, const void* address, size_t address_size, void* buffer,
size_t capacity, uint16_t query_id, mdns_record_type_t record_type,
@@ -277,7 +277,7 @@ mdns_query_answer_unicast(int sock, const void* address, size_t address_size, vo
const mdns_record_t* additional, size_t additional_count);
//! Send a variable multicast mDNS query answer to any question with variable number of records. Use
//! the top bit of the query class field (MDNS_UNICAST_RESPONSE) in the query recieved to determine
//! the top bit of the query class field (MDNS_UNICAST_RESPONSE) in the query received to determine
//! if the answer should be sent unicast (bit set) or multicast (bit not set). Buffer must be 32 bit
//! aligned. Returns 0 if success, or <0 if error.
static inline int

View File

@@ -582,7 +582,7 @@ static int service_callback(int sock,
}
// Open sockets to listen to incoming mDNS queries on port 5353
// When recieving, each socket can recieve data from all network interfaces
// When receiving, each socket can receive data from all network interfaces
// Thus we only need to open one socket for each address family
int Announcer::listenForQueries()
{

View File

@@ -8,7 +8,7 @@ This plugins receives and sends packages with type kdeconnect.mpris.
It keeps a list of detected players it can control via MPRIS. When it receives
a package that contains the boolean "requestPlayerList" set to true, it will
send back the list of players in an array named "playerList". If a new player is
detected or a known one dissappears, it should also send this list. Note that
detected or a known one disappears, it should also send this list. Note that
players are identified only by its name (its MPRIS Identity), so there can not
be two players with the same display name.

View File

@@ -195,7 +195,7 @@ void DBusNotificationsListenerThread::run()
if (!error.isEmpty()) {
qCWarning(KDECONNECT_PLUGIN_SENDNOTIFICATIONS).noquote() << "Failed to become a DBus monitor."
<< "No notifictions will be sent. Error:" << error;
<< "No notifications will be sent. Error:" << error;
}
// wake up every minute to see if we are still connected

View File

@@ -172,7 +172,7 @@ void SmsPlugin::getAttachment(const qint64 &partID, const QString &uniqueIdentif
} else {
bool ret = fileDirectory.mkpath(QStringLiteral("."));
if (!ret) {
qWarning() << "couldn't create directorty " << fileDirectory.absolutePath();
qWarning() << "couldn't create directory " << fileDirectory.absolutePath();
}
}

View File

@@ -141,7 +141,7 @@ Kirigami.ScrollablePage
ToolTip.text: i18nd("kdeconnect-sms", "Start new conversation")
onClicked: {
// We have to disable the filter temporarily in order to avoid getting key inputs accidently while processing the request
// We have to disable the filter temporarily in order to avoid getting key inputs accidentally while processing the request
filter.enabled = false
// If the address entered by the user already exists then ignore adding new contact