From 3de1317378cd6b2b9e747008f10dc386334a391a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 23 Dec 2020 17:21:03 -0800 Subject: [clang-tidy] use const pointer parameter Found with readability-non-const-parameter Signed-off-by: Rosen Penev --- src/afc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/afc.c b/src/afc.c index d0f5cb7..fe99852 100644 --- a/src/afc.c +++ b/src/afc.c @@ -355,7 +355,7 @@ static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t /** * Returns counts of null characters within a string. */ -static uint32_t count_nullspaces(char *string, uint32_t number) +static uint32_t count_nullspaces(const char *string, uint32_t number) { uint32_t i = 0, nulls = 0; -- cgit v1.1-32-gdbae