From 32dc36509c053ebbd40ae67e4b47097d441ffcc5 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sat, 2 Dec 2023 11:05:03 +0000 Subject: [PATCH] Fix various misc. typos --- README.md | 2 +- indiserver/indiserver.cpp | 18 +++++++++--------- integs/ProcessController.cpp | 2 +- integs/ServerMock.h | 2 +- integs/TestClientQueries.cpp | 2 +- integs/customTestProps.cmake | 2 +- tools/compiler.c | 6 +++--- tools/evalINDI.c | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 520ecc20eb..2bde161620 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ You can base a new driver from an existing driver. Look in either the examples o # Unit tests -In order to run the unit test suite you must first install the [Google Test Framework](https://github.com/google/googletest). You will need to build and install this from source code as Google does not recommend package managers for distributing distros.(This is because each build system is often unique and a one size fits all aproach does not work well). +In order to run the unit test suite you must first install the [Google Test Framework](https://github.com/google/googletest). You will need to build and install this from source code as Google does not recommend package managers for distributing distros.(This is because each build system is often unique and a one size fits all approach does not work well). Once you have the Google Test Framework installed follow this alternative build sequence:- diff --git a/indiserver/indiserver.cpp b/indiserver/indiserver.cpp index 12420ee37d..c888b59508 100644 --- a/indiserver/indiserver.cpp +++ b/indiserver/indiserver.cpp @@ -451,7 +451,7 @@ class Msg friend class SerializedMsgWithSharedBuffer; friend class SerializedMsgWithoutSharedBuffer; private: - // Present for sure until message queing is doned. Prune asap then + // Present for sure until message queueing is doned. Prune asap then XMLEle * xmlContent; // Present until message was queued. @@ -476,7 +476,7 @@ class Msg void releaseSharedBuffers(const std::set &keep); // Remove resources that can be removed. - // Will be called when queuingDone is true and for every change of staus from convertionToXXX + // Will be called when queuingDone is true and for every change of status from convertionToXXX void prune(); void releaseSerialization(SerializedMsg * form); @@ -1949,7 +1949,7 @@ void DvrInfo::onMessage(XMLEle * root, std::list &sharedBuffers) /* send to interested chained servers upstream */ // FIXME: no use of root here ClInfo::q2Servers(this, mp, root); - /* Send to snooped drivers if they exist so that they can echo back the snooped propertly immediately */ + /* Send to snooped drivers if they exist so that they can echo back the snooped property immediately */ // FIXME: no use of root here q2RDrivers(dev, mp, root); @@ -2109,7 +2109,7 @@ void DvrInfo::q2RDrivers(const std::string &dev, Msg *mp, XMLEle *root) continue; /* Only send message to each *unique* remote driver at a particular host:port - * Since it will be propogated to all other devices there */ + * Since it will be propagated to all other devices there */ if (dev.empty() && isRemote) { if (remoteAdvertised.find(remoteUid) != remoteAdvertised.end()) @@ -2294,7 +2294,7 @@ void ClInfo::q2Servers(DvrInfo *me, Msg *mp, XMLEle *root) auto cp = clients[cpId]; if (cp == nullptr) continue; - // Only send the message to the upstream server that is connected specfically to the device in driver dp + // Only send the message to the upstream server that is connected specifically to the device in driver dp switch (cp->allprops) { // 0 --> not all props are requested. Check for specific combination @@ -3107,7 +3107,7 @@ Msg::Msg(MsgQueue * from, XMLEle * ele): sharedBuffers() Msg::~Msg() { - // Assume convertionToSharedBlob and convertionToInlineBlob were already droped + // Assume convertionToSharedBlob and convertionToInlineBlob were already dropped assert(convertionToSharedBuffer == nullptr); assert(convertionToInline == nullptr); @@ -3158,7 +3158,7 @@ void Msg::releaseSharedBuffers(const std::set &keep) void Msg::prune() { - // Collect ressources required. + // Collect resources required. SerializationRequirement req; if (convertionToSharedBuffer) { @@ -3464,7 +3464,7 @@ void SerializedMsgWithoutSharedBuffer::generateContent() { async_pushChunck(MsgChunck(model + modelOffset, cdataOffset - modelOffset)); } - // Skip the dummy cdata completly + // Skip the dummy cdata completely modelOffset = cdataOffset + 1; // Perform inplace base64 @@ -3477,7 +3477,7 @@ void SerializedMsgWithoutSharedBuffer::generateContent() unsigned long buffSze = sizes[i]; const unsigned char* src = (const unsigned char*)blobs[i]; - // split here in smaller chuncks for faster startup + // split here in smaller chunks for faster startup // This allow starting write before the whole blob is converted while(buffSze > 0) { diff --git a/integs/ProcessController.cpp b/integs/ProcessController.cpp index 4f9f05eee7..ff1cfd1213 100644 --- a/integs/ProcessController.cpp +++ b/integs/ProcessController.cpp @@ -162,7 +162,7 @@ void ProcessController::expectExitCode(int e) { throw std::runtime_error(cmd + " got signal " + strsignal(WTERMSIG(status))); } // Not sure this is possible at all - throw std::runtime_error(cmd + " exited abnormaly"); + throw std::runtime_error(cmd + " exited abnormally"); } int actual = WEXITSTATUS(status); if (actual != e) { diff --git a/integs/ServerMock.h b/integs/ServerMock.h index a315262b97..466a518bda 100644 --- a/integs/ServerMock.h +++ b/integs/ServerMock.h @@ -25,7 +25,7 @@ class IndiClientMock; /** - * Instanciate a fake indi server + * Instantiate a fake indi server */ class ServerMock { diff --git a/integs/TestClientQueries.cpp b/integs/TestClientQueries.cpp index f7b20f5f42..aa8b14efa4 100644 --- a/integs/TestClientQueries.cpp +++ b/integs/TestClientQueries.cpp @@ -47,7 +47,7 @@ static void driverSendsProps(DriverMock &fakeDriver) static void clientReceivesProps(IndiClientMock &indiClient) { - fprintf(stderr, "Client reveives properties\n"); + fprintf(stderr, "Client receives properties\n"); for(int i = 0; i < PROP_COUNT; ++i) { indiClient.cnx.expectXml("