diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2694760..11179617 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,5 +39,4 @@ ci: autoupdate_branch: '' autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' autoupdate_schedule: weekly - skip: [markdownlint-cli2-rules-docker] submodules: false diff --git a/lib/core/pmds/net/memif/pmd_memif_socket.c b/lib/core/pmds/net/memif/pmd_memif_socket.c index 203b8700..4d932803 100644 --- a/lib/core/pmds/net/memif/pmd_memif_socket.c +++ b/lib/core/pmds/net/memif/pmd_memif_socket.c @@ -27,7 +27,8 @@ static int cne_memif_check_socket_filename(const char *filename) { - char *dir = NULL, *tmp; + char *dir = NULL; + const char *tmp; uint32_t idx; int ret = 0; diff --git a/lib/usr/app/jcfg/jcfg_lport.c b/lib/usr/app/jcfg/jcfg_lport.c index 7cc79a31..8643bc08 100644 --- a/lib/usr/app/jcfg/jcfg_lport.c +++ b/lib/usr/app/jcfg/jcfg_lport.c @@ -149,7 +149,7 @@ _lport_obj(struct json_object *obj, int flags, struct json_object *parent __cne_ lport = calloc(1, sizeof(jcfg_lport_t)); if (lport) { - char *c = strchr(key, ':'); + const char *c = strchr(key, ':'); lport->cbtype = JCFG_LPORT_TYPE; lport->name = strdup(key); diff --git a/lib/usr/app/jcfg/jcfg_lport_group.c b/lib/usr/app/jcfg/jcfg_lport_group.c index a182eb21..b60194ac 100644 --- a/lib/usr/app/jcfg/jcfg_lport_group.c +++ b/lib/usr/app/jcfg/jcfg_lport_group.c @@ -99,7 +99,8 @@ check_allowed_range_characters(const char *s) static int parse_range(const char *range, uint16_t *v1, uint16_t *v2) { - char *hyphen, *end = NULL; + const char *hyphen; + char *end = NULL; if (!range || !v1 || !v2) return -1; diff --git a/lib/usr/app/jcfg/jcfg_thread.c b/lib/usr/app/jcfg/jcfg_thread.c index cc4db011..e87dd382 100644 --- a/lib/usr/app/jcfg/jcfg_thread.c +++ b/lib/usr/app/jcfg/jcfg_thread.c @@ -110,7 +110,7 @@ _thd_obj(struct json_object *obj, int flags, struct json_object *parent __cne_un thd = calloc(1, sizeof(jcfg_thd_t)); if (thd) { - char *p = strchr(key, ':'); + const char *p = strchr(key, ':'); int idx; thd->cbtype = JCFG_THREAD_TYPE;