From e66d2d846822c48160b77e70736fec44a62f435b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 9 Apr 2006 04:40:36 +0000 Subject: a few rlim_t casts, kind of ok otto and millert --- lib/libc/gen/login_cap.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'lib/libc/gen/login_cap.c') diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index 227f23f041e..de8b048c349 100644 --- a/lib/libc/gen/login_cap.c +++ b/lib/libc/gen/login_cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.c,v 1.25 2005/10/04 20:36:40 otto Exp $ */ +/* $OpenBSD: login_cap.c,v 1.26 2006/04/09 04:40:35 deraadt Exp $ */ /* * Copyright (c) 2000-2004 Todd C. Miller @@ -546,22 +546,22 @@ gsetrl(login_cap_t *lc, int what, char *name, int type) switch (type) { case CTIME: - RCUR = login_getcaptime(lc, name, RCUR, RCUR); - RMAX = login_getcaptime(lc, name, RMAX, RMAX); - rl.rlim_cur = login_getcaptime(lc, name_cur, RCUR, RCUR); - rl.rlim_max = login_getcaptime(lc, name_max, RMAX, RMAX); + RCUR = (rlim_t)login_getcaptime(lc, name, RCUR, RCUR); + RMAX = (rlim_t)login_getcaptime(lc, name, RMAX, RMAX); + rl.rlim_cur = (rlim_t)login_getcaptime(lc, name_cur, RCUR, RCUR); + rl.rlim_max = (rlim_t)login_getcaptime(lc, name_max, RMAX, RMAX); break; case CSIZE: - RCUR = login_getcapsize(lc, name, RCUR, RCUR); - RMAX = login_getcapsize(lc, name, RMAX, RMAX); - rl.rlim_cur = login_getcapsize(lc, name_cur, RCUR, RCUR); - rl.rlim_max = login_getcapsize(lc, name_max, RMAX, RMAX); + RCUR = (rlim_t)login_getcapsize(lc, name, RCUR, RCUR); + RMAX = (rlim_t)login_getcapsize(lc, name, RMAX, RMAX); + rl.rlim_cur = (rlim_t)login_getcapsize(lc, name_cur, RCUR, RCUR); + rl.rlim_max = (rlim_t)login_getcapsize(lc, name_max, RMAX, RMAX); break; case CNUMB: - RCUR = login_getcapnum(lc, name, RCUR, RCUR); - RMAX = login_getcapnum(lc, name, RMAX, RMAX); - rl.rlim_cur = login_getcapnum(lc, name_cur, RCUR, RCUR); - rl.rlim_max = login_getcapnum(lc, name_max, RMAX, RMAX); + RCUR = (rlim_t)login_getcapnum(lc, name, RCUR, RCUR); + RMAX = (rlim_t)login_getcapnum(lc, name, RMAX, RMAX); + rl.rlim_cur = (rlim_t)login_getcapnum(lc, name_cur, RCUR, RCUR); + rl.rlim_max = (rlim_t)login_getcapnum(lc, name_max, RMAX, RMAX); break; default: return (-1); -- cgit v1.2.3