From 6fef1e4eb53877d41f52f2b4d93ea11eb680b6b3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 16 Oct 2016 23:14:06 -0700 Subject: Use const pointers in function arguments when possible --- common/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/list.c') diff --git a/common/list.c b/common/list.c index 5873d41d..47b15737 100644 --- a/common/list.c +++ b/common/list.c @@ -82,7 +82,7 @@ list_add_item(struct list *self, tbus item) /*****************************************************************************/ tbus APP_CC -list_get_item(struct list *self, int index) +list_get_item(const struct list *self, int index) { if (index < 0 || index >= self->count) { -- cgit v1.2.1