Skip to content

Commit

Permalink
Merge pull request #3915 from brauner/2021-07-29.fixes
Browse files Browse the repository at this point in the history
string_utils: cast __s64 to long long signed int
  • Loading branch information
stgraber committed Jul 29, 2021
2 parents 3f45308 + e39f333 commit 85fdf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/string_utils.h
Expand Up @@ -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;
Expand Down

0 comments on commit 85fdf33

Please sign in to comment.