diff options
author | David Seifert <soap@gentoo.org> | 2021-11-28 14:14:42 +0100 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-11-28 08:40:18 -0800 |
commit | 9d3c75818196802bb5bc3c43bb4a52fb89a83e8c (patch) | |
tree | 1ea847677a0ce686ec9fd8da36b823ae6ecd77ee | |
parent | 2ec5fdcdd5280b36e72957febac142b961fe63b2 (diff) | |
download | libcap-9d3c75818196802bb5bc3c43bb4a52fb89a83e8c.tar.gz |
Fix `-Wformat` on 32-bit platforms
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | libcap/cap_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcap/cap_test.c b/libcap/cap_test.c index b7fb2c5..39df261 100644 --- a/libcap/cap_test.c +++ b/libcap/cap_test.c @@ -124,7 +124,7 @@ static int test_short_bits(void) } if (strlen(tmp) > __CAP_NAME_SIZE) { printf("cap_to_text buffer size reservation needs fixing (%ld > %d)\n", - strlen(tmp), __CAP_NAME_SIZE); + (long int)strlen(tmp), __CAP_NAME_SIZE); result = -1; } free(tmp); |