mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
make it work on windows/etc again, i presume
svn:r10118
This commit is contained in:
parent
10efbed2f5
commit
713626bd73
1 changed files with 2 additions and 1 deletions
|
@ -2286,7 +2286,8 @@ ensure_bandwidth_cap(uint64_t value, const char *desc, char **msg)
|
|||
char buf[1024];
|
||||
if (value > ROUTER_MAX_DECLARED_BANDWIDTH) {
|
||||
r = tor_snprintf(buf, sizeof(buf), "%s ("U64_FORMAT") must be at most %d",
|
||||
desc, value, ROUTER_MAX_DECLARED_BANDWIDTH);
|
||||
desc, U64_PRINTF_ARG(value),
|
||||
ROUTER_MAX_DECLARED_BANDWIDTH);
|
||||
*msg = tor_strdup(r >= 0 ? buf : "internal error");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue