Skip to content

Commit 3b1ccfa

Browse files
author
Arto Kinnunen
committed
Merge commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed'
* commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed': Squashed 'features/frameworks/nanostack-libservice/' changes from 1d4c358..dd98c37
2 parents 220470c + d53d1df commit 3b1ccfa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

features/frameworks/nanostack-libservice/mbed-client-libservice/ns_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ typedef int_fast32_t int_fast24_t;
122122
#define __alignas_is_defined 1
123123
#elif (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L) || (defined __cplusplus && __cplusplus >= 201103L)
124124
# if defined __ARMCC_VERSION && __ARMCC_VERSION < 6120000
125-
/* Workaround for Arm Compiler versions prior to 6.12 */
125+
/* Workaround for Arm Compiler versions prior to 6.12 */
126126
# if !defined __cplusplus
127127
# define alignas _Alignas
128128
# endif

features/frameworks/nanostack-libservice/source/libBits/common_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool bitsequal(const uint8_t *a, const uint8_t *b, uint_fast8_t bits)
3535
uint_fast8_t bytes = bits / 8;
3636
bits %= 8;
3737

38-
if (memcmp(a, b, bytes)) {
38+
if (bytes && memcmp(a, b, bytes)) {
3939
return false;
4040
}
4141

features/frameworks/nanostack-libservice/test/libService/unittest/stubs/mbed_trace_stub.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
#include <stdarg.h>
1919
#include <stdlib.h>
2020

21-
#ifndef YOTTA_CFG_MBED_TRACE
22-
#define YOTTA_CFG_MBED_TRACE 1
23-
#define YOTTA_CFG_MBED_TRACE_FEA_IPV6 1
21+
#ifndef MBED_CONF_MBED_TRACE_ENABLE
22+
#define MBED_CONF_MBED_TRACE_ENABLE 1
23+
#define MBED_CONF_MBED_TRACE_FEA_IPV6 1
2424
#endif
2525

2626
#include "mbed-trace/mbed_trace.h"
27-
#if YOTTA_CFG_MBED_TRACE_FEA_IPV6 == 1
27+
#if MBED_CONF_MBED_TRACE_FEA_IPV6 == 1
2828
#include "mbed-client-libservice/ip6string.h"
2929
#include "mbed-client-libservice/common_functions.h"
3030
#endif
@@ -101,7 +101,7 @@ const char *mbed_trace_last(void)
101101
}
102102

103103
/* Helping functions */
104-
#if YOTTA_CFG_MBED_TRACE_FEA_IPV6 == 1
104+
#if MBED_CONF_MBED_TRACE_FEA_IPV6 == 1
105105
char *mbed_trace_ipv6(const void *addr_ptr)
106106
{
107107
return NULL;
@@ -111,7 +111,7 @@ char *mbed_trace_ipv6_prefix(const uint8_t *prefix, uint8_t prefix_len)
111111
{
112112
return NULL;
113113
}
114-
#endif //YOTTA_CFG_MBED_TRACE_FEA_IPV6
114+
#endif //MBED_CONF_MBED_TRACE_FEA_IPV6
115115

116116
char *mbed_trace_array(const uint8_t *buf, uint16_t len)
117117
{

0 commit comments

Comments
 (0)