From: Erwin Janssen Date: Thu, 1 Sep 2016 18:01:01 +0000 (+0200) Subject: Resolved two warnings in arrows.c X-Git-Tag: untagged-897b348e31e4e52e8698~1^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5926eff8f35684b717dc9d01383a77ab35bfa60;p=graphviz Resolved two warnings in arrows.c The local variable `namelen` is always positive, so the type `size_t` could be used. --- 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++) {