From 554e4317461feac6aca75f538c47c4d07064b246 Mon Sep 17 00:00:00 2001 From: Kevin Funk Date: Wed, 27 Aug 2014 10:47:42 +0200 Subject: [PATCH] Fix comments --- sys/cbor/cbor.c | 10 +++++----- tests/unittests/tests-cbor/tests-cbor.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/cbor/cbor.c b/sys/cbor/cbor.c index 1753dc3411..d8ab0b62fa 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" @@ -931,8 +931,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]; @@ -976,8 +976,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 cb5aee970a..3da2bfdff6 100644 --- a/tests/unittests/tests-cbor/tests-cbor.c +++ b/tests/unittests/tests-cbor/tests-cbor.c @@ -726,7 +726,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 */