[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] qualify constants as const
From: |
Marin Ramesa |
Subject: |
[PATCH 1/2] qualify constants as const |
Date: |
Tue, 10 Sep 2013 10:38:04 +0200 |
* device/cirbuf.c (cb_check_enable) [DEBUG]: Qualify constant as const.
---
device/cirbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/device/cirbuf.c b/device/cirbuf.c
index 4fe2d89..0ebff8e 100644
--- a/device/cirbuf.c
+++ b/device/cirbuf.c
@@ -42,7 +42,7 @@
/* if c_cl == c_cf - 1, buffer is full */
#if DEBUG
-int cb_check_enable = 0;
+const int cb_check_enable = 0;
#define CB_CHECK(cb) if (cb_check_enable) cb_check(cb)
void
--
1.8.1.4