diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1999-08-08 13:43:51 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1999-08-08 13:43:51 +0000 |
| commit | dd26feb90b0364fad1e3f7945771dff2a9b53db1 (patch) | |
| tree | 035c72408f9aa35c47e9e27d126dbbc965c289e9 /sys/miscfs/procfs | |
| parent | f09d6e3daaf98c30389c01a17a391b8682a7c043 (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/procfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs_rlimit.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs_rlimit.c b/sys/miscfs/procfs/procfs_rlimit.c index c735bede2e341..07bcd1061936a 100644 --- a/sys/miscfs/procfs/procfs_rlimit.c +++ b/sys/miscfs/procfs/procfs_rlimit.c @@ -36,7 +36,7 @@ * * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94 * - * $Id: procfs_rlimit.c,v 1.1 1999/04/30 13:04:21 phk Exp $ + * $Id: procfs_rlimit.c,v 1.2 1999/07/09 17:56:59 peter Exp $ */ /* @@ -94,8 +94,7 @@ procfs_dorlimit(curp, p, pfs, uio) if (p->p_rlimit[i].rlim_cur == RLIM_INFINITY) { ps += sprintf(ps, "-1 "); } else { - /* quad_t is a long on the Alpha, sigh.. */ - ps += sprintf(ps, "%qu ", + ps += sprintf(ps, "%llu ", (unsigned long long)p->p_rlimit[i].rlim_cur); } @@ -106,8 +105,7 @@ procfs_dorlimit(curp, p, pfs, uio) if (p->p_rlimit[i].rlim_max == RLIM_INFINITY) { ps += sprintf(ps, "-1\n"); } else { - /* quad_t is a long on the Alpha, sigh.. */ - ps += sprintf(ps, "%qu\n", + ps += sprintf(ps, "%llu\n", (unsigned long long)p->p_rlimit[i].rlim_max); } } |
