aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/counter.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2019-06-07 08:30:35 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2019-06-07 08:30:35 +0000
commitcb1ee1bf9becc1a59270873f81fcab0dca017a49 (patch)
tree7c808bc6d4f03ba9ccd3e40eac1bd197632fc2a7 /sys/sys/counter.h
parentd8b12a2162320a75e41390a4866dd70be53b2da2 (diff)
downloadsrc-cb1ee1bf9becc1a59270873f81fcab0dca017a49.tar.gz
src-cb1ee1bf9becc1a59270873f81fcab0dca017a49.zip
Use underscores for internal variable name to avoid conflicts.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=348774
Diffstat (limited to 'sys/sys/counter.h')
-rw-r--r--sys/sys/counter.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/sys/counter.h b/sys/sys/counter.h
index 418141a55867..9960a2c39d8e 100644
--- a/sys/sys/counter.h
+++ b/sys/sys/counter.h
@@ -43,23 +43,23 @@ void counter_u64_zero(counter_u64_t);
uint64_t counter_u64_fetch(counter_u64_t);
#define COUNTER_ARRAY_ALLOC(a, n, wait) do { \
- for (int i = 0; i < (n); i++) \
- (a)[i] = counter_u64_alloc(wait); \
+ for (int _i = 0; _i < (n); _i++) \
+ (a)[_i] = counter_u64_alloc(wait); \
} while (0)
#define COUNTER_ARRAY_FREE(a, n) do { \
- for (int i = 0; i < (n); i++) \
- counter_u64_free((a)[i]); \
+ for (int _i = 0; _i < (n); _i++) \
+ counter_u64_free((a)[_i]); \
} while (0)
#define COUNTER_ARRAY_COPY(a, dstp, n) do { \
- for (int i = 0; i < (n); i++) \
- ((uint64_t *)(dstp))[i] = counter_u64_fetch((a)[i]);\
+ for (int _i = 0; _i < (n); _i++) \
+ ((uint64_t *)(dstp))[_i] = counter_u64_fetch((a)[_i]);\
} while (0)
#define COUNTER_ARRAY_ZERO(a, n) do { \
- for (int i = 0; i < (n); i++) \
- counter_u64_zero((a)[i]); \
+ for (int _i = 0; _i < (n); _i++) \
+ counter_u64_zero((a)[_i]); \
} while (0)
/*