Fix the order of parameters
diff --git a/dumper/dumper.c b/dumper/dumper.c
index 15ff7de..52f1cdb 100644
--- a/dumper/dumper.c
+++ b/dumper/dumper.c
@@ -32,7 +32,7 @@
#ifdef USE_CBOR_CONTEXT
#define CBOR_CONTEXT_PARAM , NULL
#else
-#define COBR_CONTEXT
+#define COBR_CONTEXT_PARAM
#endif
FOO AlgorithmMap[32] = {
@@ -390,7 +390,7 @@
case CN_CBOR_BYTES:
DumpBytes(out, cbor, depth);
if ((pFOO != NULL) && (pFOO->children != NULL)) {
- const cn_cbor * cbor3 = cn_cbor_decode(cbor->v.bytes, cbor->length, NULL CBOR_CONTEXT_PARAM);
+ const cn_cbor * cbor3 = cn_cbor_decode(cbor->v.bytes, cbor->length CBOR_CONTEXT_PARAM, NULL);
if (cbor3 != NULL) {
WrapPrintF(out, fInComment ? " \\ " : " / ");
DumpTree(cbor3, out, pFOO->children, depth+1, true, true, true);
@@ -548,7 +548,7 @@
// Parse it
- cn_cbor * cbor = cn_cbor_decode(pb, cb, NULL CBOR_CONTEXT_PARAM);
+ cn_cbor * cbor = cn_cbor_decode(pb, cb CBOR_CONTEXT_PARAM, NULL);
if (cbor == NULL) {
fprintf(stderr, "Error parsing CBOR");
exit(1);