Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 98c2d78

Browse files
author
Flavio Ceolin
committed
Fix misspellings using codespell
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
1 parent f37839c commit 98c2d78

32 files changed

Lines changed: 67 additions & 67 deletions

src/lib/common/include/sol-update-modules.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ struct sol_update {
9393
/**
9494
* @brief Function called when module is loaded.
9595
*
96-
* An oportunity to do setup tasks, like checking if an update completed
97-
* successfuly.
96+
* An opportunity to do setup tasks, like checking if an update completed
97+
* successfully.
9898
*
9999
* Must return 0 on success, and a negative number on failure.
100100
*/

src/lib/common/include/sol-update.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct sol_update_handle *sol_update_check(
100100
* @brief Fetch update, so it can be installed later wit @c sol_update_install.
101101
*
102102
* Fetch will get the update. Update module should check its hash and
103-
* signature before informing that task was completed successfuly.
103+
* signature before informing that task was completed successfully.
104104
* If everything is OK, callback @a cb will be called with status == 0.
105105
*
106106
* @param cb callback called to inform fetch completion or failure. If
@@ -127,7 +127,7 @@ struct sol_update_handle *sol_update_fetch(void (*cb)(void *data, int status),
127127
*
128128
* @param cb callback called to inform installation success or failure.
129129
* If status < 0, then something went wrong. If status == 0, installation
130-
* completed successfuly.
130+
* completed successfully.
131131
* @param data user defined data to be passed to callback @a cb
132132
*
133133
* @return handle of this update task, or NULL if couldn't start the task.
@@ -146,7 +146,7 @@ struct sol_update_handle *sol_update_install(void (*cb)(void *data, int status),
146146
*
147147
* @param handle handle of update task to be cancelled.
148148
*
149-
* @return true if current task was successfuly cancelled.
149+
* @return true if current task was successfully cancelled.
150150
*
151151
* @note If cancel was successful, then @a handle becomes invalid. If not,
152152
* task callback shall still be called.

src/lib/common/sol-bus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void sol_bus_close(void);
127127
/**
128128
* Creates a new #sol_bus_client instance.
129129
*
130-
* Most of the other operations depend on the existance of a remote client.
130+
* Most of the other operations depend on the existence of a remote client.
131131
*
132132
* @param bus Connection to a D-Bus bus (system, session or private)
133133
* @param service Name of the service to be monitored, per the D-Bus specification,

src/lib/comms/include/sol-coap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ int sol_coap_unobserve_server(struct sol_coap_server *server, const struct sol_n
853853
/**
854854
* @brief Register a unknown handler callback.
855855
*
856-
* Everytime the @a server receives a request for a #sol_coap_resource that was not
856+
* Every time the @a server receives a request for a #sol_coap_resource that was not
857857
* registered with sol_coap_server_register_resource() the @a handler will be called.
858858
*
859859
* @param server The server to register the unknown resource handler.

src/lib/comms/include/sol-http-server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int sol_http_server_remove_dir(struct sol_http_server *server, const char *basen
160160
#ifdef FEATURE_FILESYSTEM
161161

162162
/**
163-
* @breif Add a page for a specific error code
163+
* @brief Add a page for a specific error code
164164
*
165165
* @param server The value got with @c sol_http_server_new
166166
* @param error The error code which @page_path will be served

src/lib/comms/include/sol-http.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ sol_http_create_simple_uri_from_str(struct sol_buffer *buf, const char *base_url
643643
* @c sol_http_params struct.
644644
*
645645
* @param query A query to be splitted.
646-
* @param params Where the query paramters will be stored.
646+
* @param params Where the query parameters will be stored.
647647
*
648648
* @return 0 on success, negative number on error.
649649
*/
@@ -665,7 +665,7 @@ int sol_http_split_post_field(const char *query, struct sol_http_params *params)
665665
/**
666666
* @brief Sort the content type slice based on its priorities
667667
*
668-
* For more infomation about how the content type is sorted check: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
668+
* For more information about how the content type is sorted check: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
669669
*
670670
* @param content_type A content type slice. Example: @c "text/html, application/json;q=0.5"
671671
* @param priorities An array to store the content type prioriries - It will be initialized by this function.

src/lib/comms/include/sol-lwm2m.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct sol_lwm2m_client_object;
104104
* may not be available for communication all the time, thus
105105
* the server must wait until it receives a heartbeat from the
106106
* client until it can send requests. The queue binding mode
107-
* is usefull, because the client may enter in deep sleep
107+
* is useful, because the client may enter in deep sleep
108108
* and save battery and only wake up in certain times.
109109
*
110110
* @note The default binding mode is #SOL_LWM2M_BINDING_MODE_U and is the only one supported right know.
@@ -502,7 +502,7 @@ struct sol_lwm2m_object {
502502
* @param tlvs An vector of #sol_lwm2m_tlv
503503
* @return 0 on success or -errno on error.
504504
* @note Since TLV does not contains a field to express the
505-
* data type. It's the user responsability to know which
505+
* data type. It's the user responsibility to know which
506506
* function it should be used to get the content value.
507507
*/
508508
int (*write_tlv)(void *instance_data, void *user_data,
@@ -772,7 +772,7 @@ int sol_lwm2m_tlv_get_obj_link(struct sol_lwm2m_tlv *tlv, uint16_t *object_id, u
772772
* @brief Adds a registration monitor.
773773
*
774774
* This function register a monitor, making it easier to observe a LWM2M client's life cycle.
775-
* This means that everytime a LWM2M client is registered, updated, deleted or timedout,
775+
* This means that every time a LWM2M client is registered, updated, deleted or timedout,
776776
* @c sol_lwm2m_server_registration_event_cb will be called.
777777
*
778778
* @param server The LWM2M server.
@@ -822,7 +822,7 @@ const struct sol_ptr_vector *sol_lwm2m_server_get_clients(const struct sol_lwm2m
822822
* @param server The LWM2M server.
823823
* @param client The LWM2M client to be observed.
824824
* @param path The path to be observed (Example: /3/0/0).
825-
* @param sol_lwm2m_server_content_cb A callback to be called when the observed path changes, used to inform a observable/read response. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @c response_code The reponse code; @c content_type The reponse content type; @c content The reponse content; @c data User data.
825+
* @param sol_lwm2m_server_content_cb A callback to be called when the observed path changes, used to inform a observable/read response. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @c response_code The response code; @c content_type The response content type; @c content The response content; @c data User data.
826826
* @param data User data to @c sol_lwm2m_server_content_cb
827827
* @return 0 on success, -errno on error.
828828
* @see sol_lwm2m_server_del_observer()
@@ -845,7 +845,7 @@ int sol_lwm2m_server_add_observer(struct sol_lwm2m_server *server,
845845
* @param server The LWM2M server.
846846
* @param client The LWM2M client to be unobserved.
847847
* @param path The path to be unobserved (Example: /3/0/0).
848-
* @param sol_lwm2m_server_content_cb The previous registered callback. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @ response_code The reponse code; @c content_type The reponse content type; @c content The reponse content; @c data User data.
848+
* @param sol_lwm2m_server_content_cb The previous registered callback. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @ response_code The response code; @c content_type The response content type; @c content The response content; @c data User data.
849849
* @param data User data to @c sol_lwm2m_server_content_cb
850850
* @return 0 on success, -errno on error.
851851
*
@@ -953,7 +953,7 @@ int sol_lwm2m_server_create_object_instance(struct sol_lwm2m_server *server,
953953
* @param server The LWM2M server.
954954
* @param client The LWM2M client info to be read.
955955
* @param path The path to be read (Example /3/0/0).
956-
* @param sol_lwm2m_server_content_cb A callback to be called when the read operation is completed. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @c response_code The reponse code; @c content_type The reponse content type; @c content The reponse content; @c data User data.
956+
* @param sol_lwm2m_server_content_cb A callback to be called when the read operation is completed. - @c server The LWM2M server; @c client The LWM2M client; @c path The client's path; @c response_code The response code; @c content_type The response content type; @c content The response content; @c data User data.
957957
* @param data User data to @c sol_lwm2m_server_content_cb
958958
* @return 0 on success, -errno on error.
959959
*/
@@ -1050,7 +1050,7 @@ const struct sol_network_link_addr *sol_lwm2m_client_info_get_address(const stru
10501050
* @param client The LWM2M client info.
10511051
* @return A array of #sol_lwm2m_client_object or @c NULL on error.
10521052
* @note One must not add or remove elements from the returned vector.
1053-
* @note Be adviced that it's not recommended to store object
1053+
* @note Be advised that it's not recommended to store object
10541054
* pointers, because during the client's update method, all
10551055
* the objects are renewed.
10561056
* @see #sol_lwm2m_client_object
@@ -1071,7 +1071,7 @@ int sol_lwm2m_client_object_get_id(const struct sol_lwm2m_client_object *object,
10711071
*
10721072
* @param object The LWM2M object to get the instances.
10731073
* @return An array of uint16_t or @c NULL on error.
1074-
* @note Be adviced that it's not recommended to store object
1074+
* @note Be advised that it's not recommended to store object
10751075
* instances pointers, because they might be deleted by other LWM2M servers,
10761076
* thus removed from the returned list.
10771077
*/

src/lib/comms/include/sol-mqtt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ enum sol_mqtt_conn_status {
9797
SOL_MQTT_DISCONNECTED = -1,
9898

9999
/**
100-
* Succesfully conencted to the broker
100+
* Successfully connected to the broker
101101
*/
102102
SOL_MQTT_CONNECTED = 0,
103103

@@ -112,7 +112,7 @@ enum sol_mqtt_conn_status {
112112
SOL_MQTT_ID_REJECTED = 2,
113113

114114
/**
115-
* Broker anavailable at provided host
115+
* Broker unavailable at provided host
116116
*/
117117
SOL_MQTT_UNAVAILABLE = 3,
118118
};
@@ -355,7 +355,7 @@ struct sol_mqtt_config {
355355
*
356356
* @param config Configuration and callbacks
357357
*
358-
* @return New mqtt object on sucess, NULL otherwise
358+
* @return New mqtt object on success, NULL otherwise
359359
*/
360360
struct sol_mqtt *sol_mqtt_connect(const struct sol_mqtt_config *config);
361361

src/lib/comms/include/sol-oic-common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ enum sol_oic_map_loop_reason {
429429
*/
430430
SOL_OIC_MAP_LOOP_OK = 0,
431431
/**
432-
* @brief Loop was terminated because an error occured. Not all elements
432+
* @brief Loop was terminated because an error occurred. Not all elements
433433
* were visited.
434434
*/
435435
SOL_OIC_MAP_LOOP_ERROR
@@ -460,7 +460,7 @@ enum sol_oic_map_loop_reason sol_oic_map_loop_init(const struct sol_oic_map_read
460460
* @param repr The value of next element from @a iterator
461461
* @param iterator The sol_oic_map_reader iterator initialized by
462462
* @ref sol_oic_map_loop_init function.
463-
* @param reason @c SOL_OIC_MAP_LOOP_ERROR if an error occured.
463+
* @param reason @c SOL_OIC_MAP_LOOP_ERROR if an error occurred.
464464
* @c SOL_OIC_MAP_LOOP_OK otherwise.
465465
*
466466
* @return false if one error occurred or if there is no more elements to read
@@ -475,12 +475,12 @@ bool sol_oic_map_loop_next(struct sol_oic_repr_field *repr, struct sol_oic_map_r
475475
/**
476476
* @brief Append an element to @a oic_map_writer
477477
*
478-
* @param oic_map_writer The sol_oic_map_writer in wich the element will be
478+
* @param oic_map_writer The sol_oic_map_writer in which the element will be
479479
* added.
480480
* @param repr The element
481481
*
482482
* @return true if the element was added successfully. False if an error
483-
* occured and the element was not added.
483+
* occurred and the element was not added.
484484
*
485485
* @see sol_oic_notify_observers()
486486
* @see sol_oic_client_resource_request()

src/lib/comms/sol-coap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ on_can_read(void *data, struct sol_socket *s)
16021602
return true;
16031603
}
16041604

1605-
SOL_DBG("pkt received and parsed sucessfully");
1605+
SOL_DBG("pkt received and parsed successfully");
16061606
sol_coap_packet_debug(pkt);
16071607

16081608
err = respond_packet(server, pkt, &cliaddr);

0 commit comments

Comments
 (0)