From e39f3333369e9c33b7456402ccca04d347ff1c3f Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 29 Jul 2021 18:25:19 +0200 Subject: [PATCH] string_utils: cast __s64 to long long signed int Link: https://launchpadlibrarian.net/550723147/buildlog_snap_ubuntu_focal_ppc64el_lxd-latest-edge_BUILDING.txt.gz Signed-off-by: Christian Brauner --- src/lxc/string_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/string_utils.h b/src/lxc/string_utils.h index a31733c18f..bc3e3992a9 100644 --- a/src/lxc/string_utils.h +++ b/src/lxc/string_utils.h @@ -173,7 +173,7 @@ static inline const char *fdstr(__s64 fd) static const char *fdstr_invalid = "-EBADF"; static char buf[INTTYPE_TO_STRLEN(__s64)]; - if (strnprintf(buf, sizeof(buf), "%lld", fd) < 0) + if (strnprintf(buf, sizeof(buf), "%lld", (long long signed int)fd) < 0) return fdstr_invalid; return buf;