Change-Id: Idc3360e7b96d5d9dd3fbb39ef97b3dc5d50c54bb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
- uint16_t u16;
- uint8_t u8;
+ uint16_t u16 = 0;
+ uint8_t u8 = 0;
size_t in, out, rlen, n3, r3, iout, nout;
int iw;
char *result, c;
size_t in, out, rlen, n3, r3, iout, nout;
int iw;
char *result, c;
int64_t *pI = NULL;
size_t *pz = NULL;
uint8_t **py = NULL;
int64_t *pI = NULL;
size_t *pz = NULL;
uint8_t **py = NULL;
- struct { struct json_object *parent; const char *acc; int index, count; char type; } stack[STACKCOUNT], *top;
+ struct { struct json_object *parent; const char *acc; int index; size_t count; char type; } stack[STACKCOUNT], *top;
struct json_object *obj;
struct json_object **po;
struct json_object *obj;
struct json_object **po;
static void array_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure)
{
static void array_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure)
{
- int n = json_object_array_length(object);
+ size_t n = json_object_array_length(object);
int i = 0;
while(i < n)
callback(closure, json_object_array_get_idx(object, i++));
int i = 0;
while(i < n)
callback(closure, json_object_array_get_idx(object, i++));
else if (!json_object_is_type(object, json_type_array))
callback(closure, object, NULL);
else {
else if (!json_object_is_type(object, json_type_array))
callback(closure, object, NULL);
else {
- int n = json_object_array_length(object);
+ size_t n = json_object_array_length(object);
int i = 0;
while(i < n)
callback(closure, json_object_array_get_idx(object, i++), NULL);
int i = 0;
while(i < n)
callback(closure, json_object_array_get_idx(object, i++), NULL);
==================
The facility wrap-json is based on the pack/unpack API on the
==================
The facility wrap-json is based on the pack/unpack API on the
-libray jansson. The two chapters below are copied from the
+library jansson. The two chapters below are copied from the
documentation of jansson library copyrighted by Petri Lehtinen
(see at end).
documentation of jansson library copyrighted by Petri Lehtinen
(see at end).
"bar", &myint2, &myint3);
/* myint1, myint2 or myint3 is no touched as "foo" and "bar" don't exist */
"bar", &myint2, &myint3);
/* myint1, myint2 or myint3 is no touched as "foo" and "bar" don't exist */
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.