|
|
049c96 |
From 9733ef83d303d0bbc45b96fa22c4f22d990fdcd0 Mon Sep 17 00:00:00 2001
|
|
|
049c96 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
049c96 |
Date: Fri, 11 Mar 2016 15:38:41 +0100
|
|
|
049c96 |
Subject: [PATCH] tc: fix compilation warning on 32bits arch
|
|
|
049c96 |
MIME-Version: 1.0
|
|
|
049c96 |
Content-Type: text/plain; charset=UTF-8
|
|
|
049c96 |
Content-Transfer-Encoding: 8bit
|
|
|
049c96 |
|
|
|
049c96 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1315930
|
|
|
049c96 |
Upstream Status: iproute2.git commit afa5158f02024
|
|
|
049c96 |
|
|
|
049c96 |
commit afa5158f02024ea9ac71a4bb262670bba17aebcd
|
|
|
049c96 |
Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
|
|
|
049c96 |
Date: Wed Apr 22 10:27:05 2015 +0200
|
|
|
049c96 |
|
|
|
049c96 |
tc: fix compilation warning on 32bits arch
|
|
|
049c96 |
|
|
|
049c96 |
The warning was:
|
|
|
049c96 |
m_simple.c: In function ‘parse_simple’:
|
|
|
049c96 |
m_simple.c:142:4: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ [-Wformat]
|
|
|
049c96 |
|
|
|
049c96 |
Useful to be able to compile with -Werror.
|
|
|
049c96 |
|
|
|
049c96 |
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
|
|
|
049c96 |
---
|
|
|
049c96 |
tc/m_simple.c | 2 +-
|
|
|
049c96 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
049c96 |
|
|
|
049c96 |
diff --git a/tc/m_simple.c b/tc/m_simple.c
|
|
|
049c96 |
index 866552f..1ad5526 100644
|
|
|
049c96 |
--- a/tc/m_simple.c
|
|
|
049c96 |
+++ b/tc/m_simple.c
|
|
|
049c96 |
@@ -138,7 +138,7 @@ parse_simple(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
|
|
|
049c96 |
}
|
|
|
049c96 |
|
|
|
049c96 |
if (strlen(simpdata) > (SIMP_MAX_DATA - 1)) {
|
|
|
049c96 |
- fprintf(stderr, "simple: Illegal string len %ld <%s> \n",
|
|
|
049c96 |
+ fprintf(stderr, "simple: Illegal string len %zu <%s> \n",
|
|
|
049c96 |
strlen(simpdata), simpdata);
|
|
|
049c96 |
return -1;
|
|
|
049c96 |
}
|
|
|
049c96 |
--
|
|
|
049c96 |
1.8.3.1
|
|
|
049c96 |
|