mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 13:21:44 +00:00
Remove useless checks and definitions (C99)
Now that MSVC support for C99 is quite good, remove previously needed but now unused checks and definitions, like PRI* format macros (including PRIdMAX and TR_PRIuSIZE, replaced with %jd and %zu) and inline macro. Also, remove ssize_t typedef and replace few occurences with ev_ssize_t. Also, remove check for stdbool.h availability (guaranteed by C99) and include it unconditionally (except when in C++ mode).
This commit is contained in:
@@ -88,7 +88,7 @@ error_handler (jsonsl_t jsn,
|
||||
|
||||
if (data->source)
|
||||
{
|
||||
tr_logAddError ("JSON parse failed in %s at pos %"TR_PRIuSIZE": %s -- remaining text \"%.16s\"",
|
||||
tr_logAddError ("JSON parse failed in %s at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
data->source,
|
||||
jsn->pos,
|
||||
jsonsl_strerror (error),
|
||||
@@ -96,7 +96,7 @@ error_handler (jsonsl_t jsn,
|
||||
}
|
||||
else
|
||||
{
|
||||
tr_logAddError ("JSON parse failed at pos %"TR_PRIuSIZE": %s -- remaining text \"%.16s\"",
|
||||
tr_logAddError ("JSON parse failed at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
jsn->pos,
|
||||
jsonsl_strerror (error),
|
||||
buf);
|
||||
|
||||
Reference in New Issue
Block a user