Use const pointers in function arguments when possible

This commit is contained in:
Pavel Roskin
2016-10-16 23:14:06 -07:00
parent bc868b96b1
commit 6fef1e4eb5
18 changed files with 36 additions and 34 deletions
+1 -1
View File
@@ -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)
{