X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftally%2Ftally.h;h=c9272f1000fa516cb5c321249ee711088301a2c2;hp=b38cd70646f3b6205eb71e4ef07a01c2afec20cd;hb=HEAD;hpb=e0fd4d1173f6d761dd6e09f820e1901e9400d8ba diff --git a/ccan/tally/tally.h b/ccan/tally/tally.h index b38cd706..c9272f10 100644 --- a/ccan/tally/tally.h +++ b/ccan/tally/tally.h @@ -1,6 +1,8 @@ +/* Licensed under LGPLv3+ - see LICENSE file for details */ #ifndef CCAN_TALLY_H #define CCAN_TALLY_H -#include +#include "config.h" +#include struct tally; @@ -10,9 +12,11 @@ struct tally; * * This allocates a tally structure using malloc(). The greater the value * of @buckets, the more accurate tally_approx_median() and tally_approx_mode() - * and tally_graph() will be, but more memory is consumed. + * and tally_histogram() will be, but more memory is consumed. If you want + * to use tally_histogram(), the optimal bucket value is the same as that + * @height argument. */ -struct tally *tally_new(size_t buckets); +struct tally *tally_new(unsigned int buckets); /** * tally_add - add a value.