TinyCBOR release 0.4.2

This is a bugfix release. Important bugs fixed in this release:
 - Fixed builds against a static cJSON
 - Fixed MSVC builds
 - Fixed builds on freestanding C implementation (no FILE* API)
 - Fixed the return value of cbor_encoder_close_container when a previous OOM
   condition had been detected
 - Fixed the build in strict C89 mode (no C99 extensions)

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
json2cbor: Initialize index before "for scope"

Observed issue on earlier version:

  json2cbor.c:157:5: error: for loop initial declarations are only allowed in C99 mode

Note, it's not mandatory for current master branch
since build script already sets the c99 flag,
but it won't cause any harm.

Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
1 file changed