diff --git a/sys/cbor/cbor.c b/sys/cbor/cbor.c index c370713e6a..60079d59cc 100644 --- a/sys/cbor/cbor.c +++ b/sys/cbor/cbor.c @@ -24,7 +24,7 @@ #include #include -// Automatically enable/disable ENABLE_DEBUG based on CBOR_NO_PRINT +/* Automatically enable/disable ENABLE_DEBUG based on CBOR_NO_PRINT */ #ifndef CBOR_NO_PRINT #define ENABLE_DEBUG 1 #include "debug.h" @@ -933,8 +933,8 @@ static size_t cbor_stream_decode_at(cbor_stream_t *stream, size_t offset, int in unsigned char tag = CBOR_ADDITIONAL_INFO(stream, offset); switch (tag) { - // Non-native builds likely don't have support for ctime (hence disable it there) - // TODO: Better check for availability of ctime functions? + /* Non-native builds likely don't have support for ctime (hence disable it there) + * TODO: Better check for availability of ctime functions? */ #ifndef CBOR_NO_CTIME case CBOR_DATETIME_STRING_FOLLOWS: { char buf[64]; @@ -978,8 +978,8 @@ static size_t cbor_stream_decode_at(cbor_stream_t *stream, size_t offset, int in } } - // if we end up here, we weren't able to parse the current byte - // let's just skip this (and the next one as well if required) + /* if we end up here, we weren't able to parse the current byte + * let's just skip this (and the next one as well if required) */ return cbor_stream_decode_skip(stream, offset); #undef DESERIALIZE_AND_PRINT diff --git a/tests/unittests/tests-cbor/tests-cbor.c b/tests/unittests/tests-cbor/tests-cbor.c index 5bc5d31c05..340fb62c02 100644 --- a/tests/unittests/tests-cbor/tests-cbor.c +++ b/tests/unittests/tests-cbor/tests-cbor.c @@ -728,7 +728,7 @@ void test_stream_decode(void) cbor_serialize_date_time_epoch(&stream, rawtime); #endif /* CBOR_NO_CTIME */ - // decoder should skip the tag and print 'unsupported' here + /* decoder should skip the tag and print 'unsupported' here */ cbor_write_tag(&stream, 2); cbor_serialize_byte_string(&stream, "1"); #endif /* CBOR_NO_SEMANTIC_TAGGING */