> +     return hist_counter;
> +}
> +
> +
> +
> +/**
> + * the algorithm keeps a circular window of requests in a fixed size buffer
> + *
> + * @param pipe   containing the window
> + * @param update whether or not to inc call number
> + * @return number of calls in the window
> + */
> +static inline int hist_check(rl_pipe_t *pipe)
> +{
> +     /* Window ELement*/
> +     #define WEL(__el__) pipe->rwin.__el__

This is really bad programming - use the structure and its field!

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/728/files#r48743447
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to