Skip to content

Commit

Permalink
Spelling fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Skyttä <[email protected]>
  • Loading branch information
scop committed Feb 28, 2017
1 parent 5040761 commit 596da26
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ LWM2M Features
--------


Implementation Improvments
--------------------------
Implementation Improvements
---------------------------

- Store lwm2m_transaction_t per peer

Expand All @@ -42,5 +42,5 @@ LWM2M Features

- Utility functions to easily implements objects
The utility will just use read and write individual resources. Either statically or
throught callbacks. See [https://github.com/01org/libdmclient]/tests/mgtobj/utils/static_mo_util.h

through callbacks. See [https://github.com/01org/libdmclient]/tests/mgtobj/utils/static_mo_util.h

2 changes: 1 addition & 1 deletion core/block1.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <string.h>
#include <stdio.h>

// the maximum payload transfered by block1 we accumulate per server
// the maximum payload transferred by block1 we accumulate per server
#define MAX_BLOCK1_SIZE 4096

coap_status_t coap_block1_handler(lwm2m_block1_data_t ** pBlock1Data,
Expand Down
2 changes: 1 addition & 1 deletion core/tlv.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ size_t tlv_serialize(bool isResourceInstance,
{
case LWM2M_TYPE_MULTIPLE_RESOURCE:
isInstance = true;
// fall throught
// fall through
case LWM2M_TYPE_OBJECT_INSTANCE:
{
uint8_t * tmpBuffer;
Expand Down
2 changes: 1 addition & 1 deletion examples/bootstrap_server/bootstrap_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ int main(int argc, char *argv[])
fclose(fd);
if (data.bsInfo == NULL)
{
fprintf(stderr, "Reading Bootsrap Info from file %s failed.\r\n", filename);
fprintf(stderr, "Reading Bootstrap Info from file %s failed.\r\n", filename);
return -1;
}

Expand Down
16 changes: 8 additions & 8 deletions examples/client/object_connectivity_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
*
* Resources:
*
* Name | ID | Oper. | Inst. | Mand.| Type | Range | Units | Descripton |
* SMS Tx Counter | 0 | R | Single| No | Integer | | | |
* SMS Rx Counter | 1 | R | Single| No | Integer | | | |
* Tx Data | 2 | R | Single| No | Integer | | kByte | |
* Rx Data | 3 | R | Single| No | Integer | | kByte | |
* Max Message Size | 4 | R | Single| No | Integer | | Byte | |
* Average Message Size | 5 | R | Single| No | Integer | | Byte | |
* StartOrReset | 6 | E | Single| Yes | Integer | | | |
* Name | ID | Oper. | Inst. | Mand.| Type | Range | Units | Description |
* SMS Tx Counter | 0 | R | Single| No | Integer | | | |
* SMS Rx Counter | 1 | R | Single| No | Integer | | | |
* Tx Data | 2 | R | Single| No | Integer | | kByte | |
* Rx Data | 3 | R | Single| No | Integer | | kByte | |
* Max Message Size | 4 | R | Single| No | Integer | | Byte | |
* Average Message Size | 5 | R | Single| No | Integer | | Byte | |
* StartOrReset | 6 | E | Single| Yes | Integer | | | |
*/

#include "liblwm2m.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/shared/dtlsconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void connection_free(dtls_connection_t * connList);
int connection_send(dtls_connection_t *connP, uint8_t * buffer, size_t length);
int connection_handle_packet(dtls_connection_t *connP, uint8_t * buffer, size_t length);

// rehandshake a connection, usefull when your NAT timeouted and your client have a new IP/PORT
// rehandshake a connection, useful when your NAT timed out and your client has a new IP/PORT
int connection_rehandshake(dtls_connection_t *connP, bool sendCloseNotify);

#endif
4 changes: 2 additions & 2 deletions tests/tlv_json_lwm2m_data_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void test_raw_expected(const char * uriStr,
// Serialize to the same format and compare to the input buffer
test_data_and_compare(uriStr, format, tlvP, size, id, (uint8_t*)expectBuf, expectLen);

// Serialize to the other format respectivly.
// Serialize to the other format respectively.
if (format == LWM2M_CONTENT_TLV)
test_data(uriStr, LWM2M_CONTENT_JSON, tlvP, size, id);
else if (format == LWM2M_CONTENT_JSON)
Expand Down Expand Up @@ -326,7 +326,7 @@ static void test_7(void)
}";

// We do a string comparison. Because parsing+serialization changes double value
// precision, we expect a slighty different output than input.
// precision, we expect a slightly different output than input.
const char * expect = "{\"e\":[ \
{\"n\":\"0\",\"v\":1234}, \
{\"n\":\"1\",\"v\":56.78900146484375}, \
Expand Down

0 comments on commit 596da26

Please sign in to comment.