mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
53a3b39da1
This is a big-ish patch, but it's very straightforward. Under this clang warning, we're not actually allowed to have a global variable without a previous extern declaration for it. The cases where we violated this rule fall into three roughly equal groups: * Stuff that should have been static. * Stuff that was global but where the extern was local to some other C file. * Stuff that was only global when built for the unit tests, that needed a conditional extern in the headers. The first two were IMO genuine problems; the last is a wart of how we build tests.
25 lines
597 B
C
25 lines
597 B
C
/* * Copyright (c) 2012-2016, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file circuitmux_ewma.h
|
|
* \brief Header file for circuitmux_ewma.c
|
|
**/
|
|
|
|
#ifndef TOR_CIRCUITMUX_EWMA_H
|
|
#define TOR_CIRCUITMUX_EWMA_H
|
|
|
|
#include "or.h"
|
|
#include "circuitmux.h"
|
|
|
|
extern circuitmux_policy_t ewma_policy;
|
|
|
|
/* Externally visible EWMA functions */
|
|
int cell_ewma_enabled(void);
|
|
unsigned int cell_ewma_get_tick(void);
|
|
void cell_ewma_set_scale_factor(const or_options_t *options,
|
|
const networkstatus_t *consensus);
|
|
|
|
#endif /* TOR_CIRCUITMUX_EWMA_H */
|
|
|