mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
tor_zstd_format_version shouldn't be built when !HAVE_ZSTD
Fixes bug 25276; bugfix not in any released Tor.
This commit is contained in:
parent
b56fd17d00
commit
5a9ada342f
@ -58,6 +58,7 @@ tor_zstd_method_supported(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_ZSTD
|
||||||
/** Format a zstd version number as a string in <b>buf</b>. */
|
/** Format a zstd version number as a string in <b>buf</b>. */
|
||||||
static void
|
static void
|
||||||
tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number)
|
tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number)
|
||||||
@ -68,6 +69,7 @@ tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number)
|
|||||||
version_number / 100 % 100,
|
version_number / 100 % 100,
|
||||||
version_number % 100);
|
version_number % 100);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VERSION_STR_MAX_LEN 16 /* more than enough space for 99.99.99 */
|
#define VERSION_STR_MAX_LEN 16 /* more than enough space for 99.99.99 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user