From: Nicolas Dichtel Date: Wed, 22 Apr 2015 08:27:05 +0000 (+0200) Subject: tc: fix compilation warning on 32bits arch X-Git-Tag: v4.1.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afa5158f02024ea9ac71a4bb262670bba17aebcd;p=thirdparty%2Fiproute2.git tc: fix compilation warning on 32bits arch The warning was: m_simple.c: In function ‘parse_simple’: m_simple.c:142:4: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ [-Wformat] Useful to be able to compile with -Werror. Signed-off-by: Nicolas Dichtel --- diff --git a/tc/m_simple.c b/tc/m_simple.c index 866552f55..1ad552687 100644 --- a/tc/m_simple.c +++ b/tc/m_simple.c @@ -138,7 +138,7 @@ parse_simple(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, } if (strlen(simpdata) > (SIMP_MAX_DATA - 1)) { - fprintf(stderr, "simple: Illegal string len %ld <%s> \n", + fprintf(stderr, "simple: Illegal string len %zu <%s> \n", strlen(simpdata), simpdata); return -1; }