build/sim: use json_object_get_int64 instead of json_object_get_uint64.
json_object_get_uint64 does not seem supported with old json-c versions.
This commit is contained in:
parent
382c1a3a44
commit
696ea468b8
|
@ -66,8 +66,8 @@ static int clocker_parse_args(struct session_s *s, const char *args)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->freq_hz = json_object_get_uint64(freq_json);
|
s->freq_hz = json_object_get_int64(freq_json);
|
||||||
s->phase_deg = json_object_get_uint64(phase_json);
|
s->phase_deg = json_object_get_int64(phase_json);
|
||||||
|
|
||||||
if (s->freq_hz == 0) {
|
if (s->freq_hz == 0) {
|
||||||
ret = RC_JSERROR;
|
ret = RC_JSERROR;
|
||||||
|
|
|
@ -345,7 +345,7 @@ static int json_get_timebase(json_object *obj, uint64_t *timebase)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
_timebase = json_object_get_uint64(json_timebase);
|
_timebase = json_object_get_int64(json_timebase);
|
||||||
if (_timebase == 0)
|
if (_timebase == 0)
|
||||||
{
|
{
|
||||||
ret=RC_JSERROR;
|
ret=RC_JSERROR;
|
||||||
|
|
Loading…
Reference in New Issue