aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tables_csum.h2
-rw-r--r--lib/tables_csum.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/tables_csum.h b/include/tables_csum.h
index 4812333093a..9207e85f91b 100644
--- a/include/tables_csum.h
+++ b/include/tables_csum.h
@@ -17,6 +17,6 @@
* @len: configuration table size
* @return: the 8-bit checksum
*/
-u8 table_compute_checksum(void *v, int len);
+u8 table_compute_checksum(const void *v, const int len);
#endif
diff --git a/lib/tables_csum.c b/lib/tables_csum.c
index 636aa596768..305b1ec31c5 100644
--- a/lib/tables_csum.c
+++ b/lib/tables_csum.c
@@ -5,9 +5,9 @@
#include <linux/types.h>
-u8 table_compute_checksum(void *v, int len)
+u8 table_compute_checksum(const void *v, const int len)
{
- u8 *bytes = v;
+ const u8 *bytes = v;
u8 checksum = 0;
int i;