]> git.pld-linux.org Git - packages/lxc.git/blame_incremental - x32.patch
- rediff patch, rel 2
[packages/lxc.git] / x32.patch
... / ...
CommitLineData
1diff -ruNp lxc-4.0.7.orig/src/lxc/log.c lxc-4.0.7/src/lxc/log.c
2--- lxc-4.0.7.orig/src/lxc/log.c 2021-04-29 22:57:15.000000000 +0200
3+++ lxc-4.0.7/src/lxc/log.c 2021-04-30 17:29:22.505346892 +0200
4@@ -280,7 +280,11 @@ static int lxc_unix_epoch_to_utc(char *b
5 seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
6
7 /* Make string from nanoseconds. */
8+ #ifdef __ILP32__
9+ ret = snprintf(nanosec, sizeof(nanosec), "%lld", (int64_t)time->tv_nsec);
10+ #else
11 ret = strnprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
12+ #endif
13 if (ret < 0)
14 return ret_errno(EIO);
15
This page took 0.065487 seconds and 4 git commands to generate.