]> git.pld-linux.org Git - packages/lxc.git/blame - x32.patch
- up to 4.0.7
[packages/lxc.git] / x32.patch
CommitLineData
2b234aa6
AO
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
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 10+ #else
2b234aa6 11 ret = strnprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
d87fbc13 12+ #endif
2b234aa6 13 if (ret < 0)
7af31a12 14 return ret_errno(EIO);
216742cb 15
This page took 0.108713 seconds and 4 git commands to generate.