]> git.pld-linux.org Git - packages/lxc.git/blame - x32.patch
up to 3.0.3
[packages/lxc.git] / x32.patch
CommitLineData
9b98602c
GP
1diff -urN lxc-3.0.3.orig/src/lxc/log.c lxc-3.0.3/src/lxc/log.c
2--- lxc-3.0.3.orig/src/lxc/log.c 2018-11-23 00:08:27.000000000 +0100
3+++ lxc-3.0.3/src/lxc/log.c 2019-01-28 19:52:33.204408097 +0100
4@@ -271,7 +271,11 @@
216742cb
JR
5 seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
6
7 /* Make string from nanoseconds. */
9b98602c
GP
8+ #ifdef __ILP32__
9+ ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", (int64_t)time->tv_nsec);
10+ #else
11 ret = snprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
d87fbc13 12+ #endif
9b98602c 13 if (ret < 0 || ret >= sizeof(nanosec))
216742cb
JR
14 return -1;
15
This page took 0.033709 seconds and 4 git commands to generate.