From 3782f379ca7651a679bacf4239d1631b592a2377 Mon Sep 17 00:00:00 2001 From: Tomas Roj Date: Thu, 9 May 2019 15:27:30 +0200 Subject: [PATCH] Fix of misspellings --- src/agenttypesystem.c | 2 +- src/codefirst.h | 2 +- src/datamarshaller.c | 2 +- src/iothub_client.c | 2 +- src/iothub_client_ll.c | 10 +++++----- src/iothub_client_options.h | 6 +++--- src/iothub_client_retry_control.c | 8 ++++---- src/iothubtransport_mqtt_common.c | 8 ++++---- src/iothubtransporthttp.c | 4 ++-- src/schemalib.c | 2 +- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/agenttypesystem.c b/src/agenttypesystem.c index 148bc1c..3576cb6 100644 --- a/src/agenttypesystem.c +++ b/src/agenttypesystem.c @@ -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*/ } } diff --git a/src/codefirst.h b/src/codefirst.h index 8cb06a7..50de743 100644 --- a/src/codefirst.h +++ b/src/codefirst.h @@ -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; diff --git a/src/datamarshaller.c b/src/datamarshaller.c index bdd6bf8..e2eaa89 100644 --- a/src/datamarshaller.c +++ b/src/datamarshaller.c @@ -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) { diff --git a/src/iothub_client.c b/src/iothub_client.c index 961415e..fa59557 100644 --- a/src/iothub_client.c +++ b/src/iothub_client.c @@ -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) { diff --git a/src/iothub_client_ll.c b/src/iothub_client_ll.c index f2fbd74..ea38a2d 100644 --- a/src/iothub_client_ll.c +++ b/src/iothub_client_ll.c @@ -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__; @@ -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*/ @@ -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; @@ -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*/ @@ -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) { diff --git a/src/iothub_client_options.h b/src/iothub_client_options.h index 162a58b..bee8709 100644 --- a/src/iothub_client_options.h +++ b/src/iothub_client_options.h @@ -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"; @@ -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. */ diff --git a/src/iothub_client_retry_control.c b/src/iothub_client_retry_control.c index d5483d1..0b590d2 100644 --- a/src/iothub_client_retry_control.c +++ b/src/iothub_client_retry_control.c @@ -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; } @@ -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); } } @@ -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; @@ -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__; } } diff --git a/src/iothubtransport_mqtt_common.c b/src/iothubtransport_mqtt_common.c index f550e2b..ea238d6 100644 --- a/src/iothubtransport_mqtt_common.c +++ b/src/iothubtransport_mqtt_common.c @@ -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 @@ -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); } } @@ -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; } } @@ -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)."); diff --git a/src/iothubtransporthttp.c b/src/iothubtransporthttp.c index d348d03..3674717 100644 --- a/src/iothubtransporthttp.c +++ b/src/iothubtransporthttp.c @@ -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; @@ -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; diff --git a/src/schemalib.c b/src/schemalib.c index bb5f116..6dd4ecf 100644 --- a/src/schemalib.c +++ b/src/schemalib.c @@ -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.] */