Skip to content

Commit

Permalink
Fix various misc. typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz committed Dec 2, 2023
1 parent 8895c0f commit 32dc365
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:-

Expand Down
18 changes: 9 additions & 9 deletions indiserver/indiserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -476,7 +476,7 @@ class Msg
void releaseSharedBuffers(const std::set<int> &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);
Expand Down Expand Up @@ -1949,7 +1949,7 @@ void DvrInfo::onMessage(XMLEle * root, std::list<int> &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);

Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -3158,7 +3158,7 @@ void Msg::releaseSharedBuffers(const std::set<int> &keep)

void Msg::prune()
{
// Collect ressources required.
// Collect resources required.
SerializationRequirement req;
if (convertionToSharedBuffer)
{
Expand Down Expand Up @@ -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
Expand All @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion integs/ProcessController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion integs/ServerMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class IndiClientMock;

/**
* Instanciate a fake indi server
* Instantiate a fake indi server
*/
class ServerMock
{
Expand Down
2 changes: 1 addition & 1 deletion integs/TestClientQueries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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("<defNumberVector device='fakedev1' name='testnumber" + std::to_string(
Expand Down
2 changes: 1 addition & 1 deletion integs/customTestProps.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is used by ctest after test discovery occured
# This is used by ctest after test discovery occurred
set_tests_properties(${TestIndiserverSingleDriver_TESTS} PROPERTIES
TIMEOUT 5
)
Expand Down
6 changes: 3 additions & 3 deletions tools/compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ enum
NEG,
NOT,

/* symantically operands, ie, constants, variables and all functions */
/* semantically operands, ie, constants, variables and all functions */
CONST,
VAR,
ABS,
Expand Down Expand Up @@ -424,7 +424,7 @@ static int next_token()
return (ERR);
}

/* return funtion token, else ERR.
/* return function token, else ERR.
* if find one, update cexpr too.
*/
static int chk_funcs()
Expand Down Expand Up @@ -676,7 +676,7 @@ static int execute(result) double *result;
instr = *pc++;
switch (instr & OP_MASK)
{
/* put these in numberic order so hopefully even the dumbest
/* put these in numeric order so hopefully even the dumbest
* compiler will choose to use a jump table, not a cascade of ifs.
*/
case HALT:
Expand Down
2 changes: 1 addition & 1 deletion tools/evalINDI.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static int directfd = -1; /* direct filedes to server, if >= 0 */
static int verbose; /* more tracing */
static int eflag; /* print each updated expression value*/
static int fflag; /* print final expression value */
static int iflag; /* read expresion from stdin */
static int iflag; /* read expression from stdin */
static int oflag; /* print operands as they change */
static int wflag; /* wait for expression to be true */
static int bflag; /* beep when true */
Expand Down

0 comments on commit 32dc365

Please sign in to comment.