diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 04:40:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 04:40:36 +0000 |
commit | e66d2d846822c48160b77e70736fec44a62f435b (patch) | |
tree | d6543f17e843cd0f675e9dda256b7045fe6a0240 /lib | |
parent | 460523e76fa8ce657e00f984832638709866597c (diff) |
a few rlim_t casts, kind of ok otto and millert
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/login_cap.c | 26 |
1 files changed, 13 insertions, 13 deletions
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 <Todd.Miller@courtesan.com> @@ -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); |