From: Christian Brauner Date: Thu, 29 Jul 2021 16:25:19 +0000 (+0200) Subject: string_utils: cast __s64 to long long signed int X-Git-Tag: lxc-5.0.0~129^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3915%2Fhead;p=thirdparty%2Flxc.git 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 --- diff --git a/src/lxc/string_utils.h b/src/lxc/string_utils.h index a31733c18..bc3e3992a 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;