diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-03 16:19:17 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-28 02:45:05 -0400 |
commit | 42d0b044b7c9e5821f1bf3e2b4ea7861417c11c2 (patch) | |
tree | 3dedf87facfbc4dd0392256e93088c18509e1391 /net/batman-adv/ring_buffer.c | |
parent | edbf7ff72312afcc502014ccf3c72c49fa55722a (diff) |
batman-adv: Prefix main defines with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/ring_buffer.c')
-rw-r--r-- | net/batman-adv/ring_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/ring_buffer.c b/net/batman-adv/ring_buffer.c index aff1ca2990f1..c8f61e395b74 100644 --- a/net/batman-adv/ring_buffer.c +++ b/net/batman-adv/ring_buffer.c | |||
@@ -24,7 +24,7 @@ void batadv_ring_buffer_set(uint8_t lq_recv[], uint8_t *lq_index, | |||
24 | uint8_t value) | 24 | uint8_t value) |
25 | { | 25 | { |
26 | lq_recv[*lq_index] = value; | 26 | lq_recv[*lq_index] = value; |
27 | *lq_index = (*lq_index + 1) % TQ_GLOBAL_WINDOW_SIZE; | 27 | *lq_index = (*lq_index + 1) % BATADV_TQ_GLOBAL_WINDOW_SIZE; |
28 | } | 28 | } |
29 | 29 | ||
30 | uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[]) | 30 | uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[]) |
@@ -34,7 +34,7 @@ uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[]) | |||
34 | 34 | ||
35 | ptr = lq_recv; | 35 | ptr = lq_recv; |
36 | 36 | ||
37 | while (i < TQ_GLOBAL_WINDOW_SIZE) { | 37 | while (i < BATADV_TQ_GLOBAL_WINDOW_SIZE) { |
38 | if (*ptr != 0) { | 38 | if (*ptr != 0) { |
39 | count++; | 39 | count++; |
40 | sum += *ptr; | 40 | sum += *ptr; |