Fix #183 (short term fix)

This is a temporary fix for #183, so that things can
build cleanly until the issue is fixed properly.

If RIMESTATS_CONF_ENABLED is 0, rimestats.foo will always
read as 0, since RIMESTATS_ADD(foo) doesn't do anything
This commit is contained in:
George Oikonomou 2013-03-20 19:53:26 +00:00
parent 6ba28bf74f
commit 12860ce5d4

View file

@ -55,8 +55,9 @@ struct rimestats {
unsigned long lltx, llrx;
};
#if RIMESTATS_CONF_ENABLED
extern struct rimestats rimestats;
#if RIMESTATS_CONF_ENABLED
#define RIMESTATS_ADD(x) rimestats.x++
#else /* RIMESTATS_CONF_ENABLED */
#define RIMESTATS_ADD(x)