]> git.pld-linux.org Git - packages/lxc.git/blame - x32.patch
- up to 4.0.5
[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 8+ #ifdef __ILP32__
8d650a57 9+ ret = snprintf(nanosec, sizeof(nanosec), "%lld", (int64_t)time->tv_nsec);
9b98602c
GP
10+ #else
11 ret = snprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
d87fbc13 12+ #endif
7af31a12
JR
13 if (ret < 0 || (size_t)ret >= sizeof(nanosec))
14 return ret_errno(EIO);
216742cb 15
This page took 0.151158 seconds and 4 git commands to generate.