Commit 810c0616 authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy
Browse files

Fix compilation on OpenSUSE.

This patch fixes a build error with GCC 7.x which doesn't seem to accept
const int's as constants in macro initialization.

See: tpo/core/tor#40410
parent 33e2c596
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1907,8 +1907,7 @@ dir_client_decompress_response_body(char **bodyp, size_t *bodylenp,
  /* If we're pretty sure that we have a compressed directory, and
   * we didn't manage to uncompress it, then warn and bail. */
  if (!plausible && !new_body) {
    const int LOG_INTERVAL = 3600;
    static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
    static ratelim_t warning_limit = RATELIM_INIT(60 * 60);
    log_fn_ratelim(&warning_limit, LOG_WARN, LD_HTTP,
           "Unable to decompress HTTP body (tried %s%s%s, on %s).",
           description1,