Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Fix of misspellings #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/agenttypesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ void Destroy_AGENT_DATA_TYPE(AGENT_DATA_TYPE* agentData)
break;
}
}
agentData->type = EDM_NO_TYPE; /*mark as detroyed*/
agentData->type = EDM_NO_TYPE; /*mark as destroyed*/
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/codefirst.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typedef struct REFLECTION_DESIRED_PROPERTY_TAG
void(*desiredPropertDeinitialize)(void* destination);
const char* name;
const char* type;
int(*FromAGENT_DATA_TYPE)(const AGENT_DATA_TYPE* source, void* dest); /*destination is "something" everytime. When the DESIRED_PROPERTY is a MODEL, the function is empty*/
int(*FromAGENT_DATA_TYPE)(const AGENT_DATA_TYPE* source, void* dest); /*destination is "something" every time. When the DESIRED_PROPERTY is a MODEL, the function is empty*/
size_t offset;
size_t size;
const char* modelName;
Expand Down
2 changes: 1 addition & 1 deletion src/datamarshaller.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ DATA_MARSHALLER_RESULT DataMarshaller_SendData_ReportedProperties(DATA_MARSHALLE
}
else
{
/*Codes_SRS_DATA_MARSHALLER_02_016: [ DataMarshaller_SendData_ReportedProperties shall replace all the occurences of / with . in the reported property paths. ]*/
/*Codes_SRS_DATA_MARSHALLER_02_016: [ DataMarshaller_SendData_ReportedProperties shall replace all the occurrences of / with . in the reported property paths. ]*/
char *whereIsSlash;
while ((whereIsSlash = strchr(leftSide, '/')) != NULL)
{
Expand Down
2 changes: 1 addition & 1 deletion src/iothub_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ IOTHUB_CLIENT_RESULT IoTHubClient_UploadToBlobAsync(IOTHUB_CLIENT_HANDLE iotHubC
}
else
{
/*Codes_SRS_IOTHUBCLIENT_02_051: [IoTHubClient_UploadToBlobAsync shall copy the souce, size, iotHubClientFileUploadCallback, context into a structure.]*/
/*Codes_SRS_IOTHUBCLIENT_02_051: [IoTHubClient_UploadToBlobAsync shall copy the source, size, iotHubClientFileUploadCallback, context into a structure.]*/
UPLOADTOBLOB_THREAD_INFO *threadInfo = allocateUploadToBlob(destinationFileName, iotHubClientHandle, context);
if (threadInfo == NULL)
{
Expand Down
10 changes: 5 additions & 5 deletions src/iothub_client_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ static int attach_ms_timesOutAfter(IOTHUB_CLIENT_LL_HANDLE_DATA* handleData, IOT
}
else
{
/*Codes_SRS_IOTHUBCLIENT_LL_02_039: [ "messageTimeout" - once IoTHubClient_LL_SendEventAsync is called the message shall timeout after value miliseconds. Value is a pointer to a tickcounter_ms_t. ]*/
/*Codes_SRS_IOTHUBCLIENT_LL_02_039: [ "messageTimeout" - once IoTHubClient_LL_SendEventAsync is called the message shall timeout after value milliseconds. Value is a pointer to a tickcounter_ms_t. ]*/
if (tickcounter_get_current_ms(handleData->tickCounter, &newEntry->ms_timesOutAfter) != 0)
{
result = __FAILURE__;
Expand Down Expand Up @@ -1271,7 +1271,7 @@ static void DoTimeouts(IOTHUB_CLIENT_LL_HANDLE_DATA* handleData)
while (currentItemInWaitingToSend != &(handleData->waitingToSend)) /*while we are not at the end of the list*/
{
IOTHUB_MESSAGE_LIST* fullEntry = containingRecord(currentItemInWaitingToSend, IOTHUB_MESSAGE_LIST, entry);
/*Codes_SRS_IOTHUBCLIENT_LL_02_041: [ If more than value miliseconds have passed since the call to IoTHubClient_LL_SendEventAsync then the message callback shall be called with a status code of IOTHUB_CLIENT_CONFIRMATION_TIMEOUT. ]*/
/*Codes_SRS_IOTHUBCLIENT_LL_02_041: [ If more than value milliseconds have passed since the call to IoTHubClient_LL_SendEventAsync then the message callback shall be called with a status code of IOTHUB_CLIENT_CONFIRMATION_TIMEOUT. ]*/
if ((fullEntry->ms_timesOutAfter != 0) && (fullEntry->ms_timesOutAfter < nowTick))
{
PDLIST_ENTRY theNext = currentItemInWaitingToSend->Flink; /*need to save the next item, because the below operations are destructive*/
Expand Down Expand Up @@ -1451,7 +1451,7 @@ void IoTHubClient_LL_RetrievePropertyComplete(IOTHUB_CLIENT_LL_HANDLE handle, DE
/* Codes_SRS_IOTHUBCLIENT_LL_07_014: [ If deviceTwinCallback is NULL then IoTHubClient_LL_RetrievePropertyComplete shall do nothing.] */
if (handleData->deviceTwinCallback)
{
/* Codes_SRS_IOTHUBCLIENT_LL_07_015: [ If the the update_state parameter is DEVICE_TWIN_UPDATE_PARTIAL and a DEVICE_TWIN_UPDATE_COMPLETE has not been previously recieved then IoTHubClient_LL_RetrievePropertyComplete shall do nothing.] */
/* Codes_SRS_IOTHUBCLIENT_LL_07_015: [ If the the update_state parameter is DEVICE_TWIN_UPDATE_PARTIAL and a DEVICE_TWIN_UPDATE_COMPLETE has not been previously received then IoTHubClient_LL_RetrievePropertyComplete shall do nothing.] */
if (update_state == DEVICE_TWIN_UPDATE_COMPLETE)
{
handleData->complete_twin_update_encountered = true;
Expand Down Expand Up @@ -1716,7 +1716,7 @@ IOTHUB_CLIENT_RESULT IoTHubClient_LL_SetOption(IOTHUB_CLIENT_LL_HANDLE iotHubCli
{
IOTHUB_CLIENT_LL_HANDLE_DATA* handleData = (IOTHUB_CLIENT_LL_HANDLE_DATA*)iotHubClientHandle;

/*Codes_SRS_IOTHUBCLIENT_LL_02_039: [ "messageTimeout" - once IoTHubClient_LL_SendEventAsync is called the message shall timeout after value miliseconds. Value is a pointer to a tickcounter_ms_t. ]*/
/*Codes_SRS_IOTHUBCLIENT_LL_02_039: [ "messageTimeout" - once IoTHubClient_LL_SendEventAsync is called the message shall timeout after value milliseconds. Value is a pointer to a tickcounter_ms_t. ]*/
if (strcmp(optionName, OPTION_MESSAGE_TIMEOUT) == 0)
{
/*this is an option handled by IoTHubClient_LL*/
Expand Down Expand Up @@ -1876,7 +1876,7 @@ IOTHUB_CLIENT_RESULT IoTHubClient_LL_SendReportedState(IOTHUB_CLIENT_LL_HANDLE i
else
{
IOTHUB_CLIENT_LL_HANDLE_DATA* handleData = (IOTHUB_CLIENT_LL_HANDLE_DATA*)iotHubClientHandle;
/* Codes_SRS_IOTHUBCLIENT_LL_10_014: [IoTHubClient_LL_SendReportedState shall construct and queue the reported a Device_Twin structure for transmition by the underlying transport.] */
/* Codes_SRS_IOTHUBCLIENT_LL_10_014: [IoTHubClient_LL_SendReportedState shall construct and queue the reported a Device_Twin structure for transmission by the underlying transport.] */
IOTHUB_DEVICE_TWIN* client_data = dev_twin_data_create(handleData, get_next_item_id(handleData), reportedState, size, reportedStateCallback, userContextCallback);
if (client_data == NULL)
{
Expand Down
6 changes: 3 additions & 3 deletions src/iothub_client_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ extern "C"
static STATIC_VAR_UNUSED const char* OPTION_AUTO_URL_ENCODE_DECODE = "auto_url_encode_decode";
/*
* @brief Informs the service of what is the maximum period the client will wait for a keep-alive message from the service.
* The service must send keep-alives before this timeout is reached, otherwise the client will trigger its re-connection logic.
* The service must send keep-alive before this timeout is reached, otherwise the client will trigger its re-connection logic.
* Setting this option to a low value results in more aggressive/responsive re-connection by the client.
* The default value for this option is 240 seconds, and the minimum allowed is usually 5 seconds.
* To virtually disable the keep-alives from the service (and consequently the keep-alive timeout control on the client-side), set this option to a high value (e.g., UINT_MAX).
* To virtually disable the keep-alive from the service (and consequently the keep-alive timeout control on the client-side), set this option to a high value (e.g., UINT_MAX).
*/
static STATIC_VAR_UNUSED const char* OPTION_SERVICE_SIDE_KEEP_ALIVE_FREQ_SECS = "svc2cl_keep_alive_timeout_secs";

Expand All @@ -57,7 +57,7 @@ extern "C"

/*
* @brief Ratio to be used for client side pings in AMQP protocol.
* The client must use this ratio to send keep-alives before service side remote idle timeout is reached, otherwise the service will disconnect the client.
* The client must use this ratio to send keep-alive before service side remote idle timeout is reached, otherwise the service will disconnect the client.
* The default value for this option is 1/2 of the remote idle value sent by the service.
* For AMQP remote idle set to 4 minutes, default client ping will be 2 minutes. For AMQP remote idle set to 25 minutes configured via per Hub basis, the default ping will be 12.5 minutes.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/iothub_client_retry_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void* retry_control_clone_option(const char* name, const void* value)
}
else
{
LogError("Failed to clone option (option with name '%s' is not suppported)", name);
LogError("Failed to clone option (option with name '%s' is not supported)", name);
result = NULL;
}

Expand All @@ -82,7 +82,7 @@ static void retry_control_destroy_option(const char* name, const void* value)
}
else
{
LogError("Failed to destroy option (option with name '%s' is not suppported)", name);
LogError("Failed to destroy option (option with name '%s' is not supported)", name);
}
}

Expand Down Expand Up @@ -334,7 +334,7 @@ int retry_control_should_retry(RETRY_CONTROL_HANDLE retry_control_handle, RETRY_
{
RETRY_CONTROL_INSTANCE* retry_control = (RETRY_CONTROL_INSTANCE*)retry_control_handle;

// Codes_SRS_IOTHUB_CLIENT_RETRY_CONTROL_09_027: [If `retry_control->policy` is IOTHUB_CLIENT_RETRY_NONE, retry_action shall be set to RETRY_ACTION_STOP_RETRYING and return immediatelly with result 0]
// Codes_SRS_IOTHUB_CLIENT_RETRY_CONTROL_09_027: [If `retry_control->policy` is IOTHUB_CLIENT_RETRY_NONE, retry_action shall be set to RETRY_ACTION_STOP_RETRYING and return immediately with result 0]
if (retry_control->policy == IOTHUB_CLIENT_RETRY_NONE)
{
*retry_action = RETRY_ACTION_STOP_RETRYING;
Expand Down Expand Up @@ -449,7 +449,7 @@ int retry_control_set_option(RETRY_CONTROL_HANDLE retry_control_handle, const ch
// Codes_SRS_IOTHUB_CLIENT_RETRY_CONTROL_09_043: [If `name` is not a supported option, `retry_control_set_option` shall fail and return non-zero]
else
{
LogError("messenger_set_option failed (option with name '%s' is not suppported)", name);
LogError("messenger_set_option failed (option with name '%s' is not supported)", name);
result = __FAILURE__;
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/iothubtransport_mqtt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ typedef struct MQTTTRANSPORT_HANDLE_DATA_TAG
// The second segment will contain the device id. The two segments are delemited by a "/".
// The first segment can be a maximum 256 characters.
// The second segment can be a maximum 128 characters.
// With the / delimeter you have 384 chars (Plus a terminator of 0).
// With the / delimiter you have 384 chars (Plus a terminator of 0).
STRING_HANDLE configPassedThroughUsername;

// Upper layer
Expand Down Expand Up @@ -2717,7 +2717,7 @@ void IoTHubTransport_MQTT_Common_DoWork(TRANSPORT_LL_HANDLE handle, IOTHUB_CLIEN
currentListEntry = savedFromCurrentListEntry.Flink;
}
}
/* Codes_SRS_IOTHUB_MQTT_TRANSPORT_07_030: [IoTHubTransport_MQTT_Common_DoWork shall call mqtt_client_dowork everytime it is called if it is connected.] */
/* Codes_SRS_IOTHUB_MQTT_TRANSPORT_07_030: [IoTHubTransport_MQTT_Common_DoWork shall call mqtt_client_dowork every time it is called if it is connected.] */
mqtt_client_dowork(transport_data->mqttClient);
}
}
Expand Down Expand Up @@ -2899,7 +2899,7 @@ IOTHUB_CLIENT_RESULT IoTHubTransport_MQTT_Common_SetOption(TRANSPORT_LL_HANDLE h
transport_data->http_proxy_username = copied_proxy_username;
transport_data->http_proxy_password = copied_proxy_password;

/* Codes_SRS_IOTHUB_TRANSPORT_MQTT_COMMON_01_008: [ If setting the `proxy_data` option suceeds, `IoTHubTransport_MQTT_Common_SetOption` shall return `IOTHUB_CLIENT_OK` ]*/
/* Codes_SRS_IOTHUB_TRANSPORT_MQTT_COMMON_01_008: [ If setting the `proxy_data` option succeeds, `IoTHubTransport_MQTT_Common_SetOption` shall return `IOTHUB_CLIENT_OK` ]*/
result = IOTHUB_CLIENT_OK;
}
}
Expand Down Expand Up @@ -3015,7 +3015,7 @@ STRING_HANDLE IoTHubTransport_MQTT_Common_GetHostname(TRANSPORT_LL_HANDLE handle
{
result = NULL;
}
/*Codes_SRS_IOTHUB_MQTT_TRANSPORT_02_002: [ Otherwise IoTHubTransport_MQTT_Common_GetHostname shall return a non-NULL STRING_HANDLE containg the hostname. ]*/
/*Codes_SRS_IOTHUB_MQTT_TRANSPORT_02_002: [ Otherwise IoTHubTransport_MQTT_Common_GetHostname shall return a non-NULL STRING_HANDLE containing the hostname. ]*/
else if ((result = STRING_clone(((MQTTTRANSPORT_HANDLE_DATA*)(handle))->hostAddress)) == NULL)
{
LogError("Cannot provide the target host name (STRING_clone failed).");
Expand Down
4 changes: 2 additions & 2 deletions src/iothubtransporthttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ static IOTHUB_DEVICE_HANDLE* get_perDeviceDataItem(IOTHUB_DEVICE_HANDLE deviceHa
}
else
{
/* sucessfully found device in list. */
/* successfully found device in list. */
}

return listItem;
Expand Down Expand Up @@ -2078,7 +2078,7 @@ static void DoMessages(HTTPTRANSPORT_HANDLE_DATA* handleData, HTTPTRANSPORT_PERD
}
if (r == HTTPAPIEX_OK)
{
/*HTTP dialogue was succesfull*/
/*HTTP dialogue was successful*/
if (timeNow == (time_t)(-1))
{
deviceData->isFirstPoll = true;
Expand Down
2 changes: 1 addition & 1 deletion src/schemalib.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SERIALIZER_RESULT serializer_init(const char* overrideSchemaNamespace)
}
else
{
/* Codes_SRS_SCHEMALIB_99_075:[When an serializer_init call fails for any reason the previous initialization state shall be preserved. The initialized state shall only be changed on a succesfull Init.] */
/* Codes_SRS_SCHEMALIB_99_075:[When an serializer_init call fails for any reason the previous initialization state shall be preserved. The initialized state shall only be changed on a successful Init.] */
g_AgentState = AGENT_INITIALIZED;

/* Codes_SRS_SCHEMALIB_99_073:[On success serializer_init shall return SERIALIZER_OK.] */
Expand Down