Spelling fixes

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
This commit is contained in:
Ville Skyttä 2017-02-28 13:17:23 +02:00
parent 5040761727
commit 596da26416
7 changed files with 18 additions and 18 deletions

8
TODO
View File

@ -20,8 +20,8 @@ LWM2M Features
--------
Implementation Improvments
--------------------------
Implementation Improvements
---------------------------
- Store lwm2m_transaction_t per peer
@ -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

View File

@ -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,

View File

@ -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;

View File

@ -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;
}

View File

@ -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"

View File

@ -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

View File

@ -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)
@ -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}, \