From c5926eff8f35684b717dc9d01383a77ab35bfa60 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Thu, 1 Sep 2016 20:01:01 +0200 Subject: [PATCH] Resolved two warnings in arrows.c The local variable `namelen` is always positive, so the type `size_t` could be used. --- lib/common/arrows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/arrows.c b/lib/common/arrows.c index 989eb9e55..6f4f340da 100644 --- a/lib/common/arrows.c +++ b/lib/common/arrows.c @@ -138,7 +138,7 @@ static arrowtype_t Arrowtypes[] = { static char *arrow_match_name_frag(char *name, arrowname_t * arrownames, int *flag) { arrowname_t *arrowname; - int namelen = 0; + size_t namelen = 0; char *rest = name; for (arrowname = arrownames; arrowname->name; arrowname++) { -- 2.40.0