From 765feac2cdcb84623f8778e20f8277b32679eeac Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 12 Mar 2017 13:08:06 +0000 Subject: Fix a few omissions in the adaptation --- src/daemontools-extras/s6-softlimit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemontools-extras/s6-softlimit.c') diff --git a/src/daemontools-extras/s6-softlimit.c b/src/daemontools-extras/s6-softlimit.c index 7de9f3d..d3fbaee 100644 --- a/src/daemontools-extras/s6-softlimit.c +++ b/src/daemontools-extras/s6-softlimit.c @@ -16,9 +16,9 @@ static void doit (int res, char const *arg) if ((arg[0] == '=') && !arg[1]) r.rlim_cur = r.rlim_max ; else { - uint64 n ; + uint64_t n ; if (!uint640_scan(arg, &n)) strerr_dieusage(100, USAGE) ; - if (n > (uint64)r.rlim_max) n = (uint64)r.rlim_max ; + if (n > (uint64_t)r.rlim_max) n = (uint64_t)r.rlim_max ; r.rlim_cur = (rlim_t)n ; } if (setrlimit(res, &r) < 0) strerr_diefu1sys(111, "setrlimit") ; -- cgit v1.2.3