aboutsummaryrefslogtreecommitdiff
path: root/utils/lxc/patches/003-compile.patch
blob: b26b78d1f16d63d6f7b908080c6bf23a759d4e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/lxc/confile_utils.c
+++ b/src/lxc/confile_utils.c
@@ -677,7 +677,7 @@
 	char *endptr = NULL;
 
 	if (strncmp(*value, "unlimited", sizeof("unlimited") - 1) == 0) {
-		*res = RLIM_INFINITY;
+		*res = (unsigned long)RLIM_INFINITY;
 		*value += sizeof("unlimited") - 1;
 		return true;
 	}