]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
string_utils: cast __s64 to long long signed int 3915/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 29 Jul 2021 16:25:19 +0000 (18:25 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 29 Jul 2021 16:25:19 +0000 (18:25 +0200)
Link: https://launchpadlibrarian.net/550723147/buildlog_snap_ubuntu_focal_ppc64el_lxd-latest-edge_BUILDING.txt.gz
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/string_utils.h

index a31733c18f46f052417fe72bee2d34c964f0dd49..bc3e3992a965c37636c1c945f6d6ccdbe7ca9807 100644 (file)
@@ -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;