fix compiler warnings
This commit is contained in:
parent
bf7c9eef13
commit
6e70e34d92
2 changed files with 3 additions and 3 deletions
|
@ -284,7 +284,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
#ifdef DEBUG
|
||||
printf("calculate for jd: %f\n", jd);
|
||||
printf("calculate for ts: %d\n", t);
|
||||
printf("calculate for ts: %ld\n", t);
|
||||
printf("for position: N %f, E %f\n", obs.lat, obs.lng);
|
||||
printf("for object: %s\n", object_to_name(obj));
|
||||
printf("with horizon: %f\n", horizon);
|
||||
|
|
|
@ -50,7 +50,7 @@ static size_t json_parse_callback(void *contents, size_t size, size_t nmemb, voi
|
|||
|
||||
if (jtok->err == json_tokener_continue) {
|
||||
#ifdef DEBUG
|
||||
printf("got chunk: %d * %d = %d bytes\r\n", size, nmemb, realsize);
|
||||
printf("got chunk: %zu * %zu = %zu bytes\r\n", size, nmemb, realsize);
|
||||
#endif
|
||||
|
||||
jobj = json_tokener_parse_ex(jtok, (char *) contents, realsize);
|
||||
|
@ -60,7 +60,7 @@ static size_t json_parse_callback(void *contents, size_t size, size_t nmemb, voi
|
|||
json_tokener_free(jtok);
|
||||
}
|
||||
else if (jtok->err != json_tokener_continue) {
|
||||
fprintf(stderr, "parse error: %s\r\n", json_tokener_get_error(jtok));
|
||||
fprintf(stderr, "parse error: %\r\n", json_tokener_get_error(jtok));
|
||||
*(void **) userp = NULL;
|
||||
json_tokener_free(jtok);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue