summaryrefslogtreecommitdiff
path: root/shells/es/patches/patch-ab
blob: 0a15ec3f9f2740d89cc711e9c8eb9c90e4da92f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ab,v 1.1 2004/02/26 07:47:48 uebayasi Exp $

--- prim-sys.c.orig	Tue May 30 06:13:51 1995
+++ prim-sys.c	Thu Apr 10 10:15:40 1997
@@ -194,7 +194,7 @@
 
 static void printlimit(const Limit *limit, Boolean hard) {
 	struct rlimit rlim;
-	long lim;
+	u_quad_t lim;
 	getrlimit(limit->flag, &rlim);
 	if (hard)
 		lim = rlim.rlim_max;
@@ -209,11 +209,11 @@
 				lim /= suf->amount;
 				break;
 			}
-		print("%-8s\t%d%s\n", limit->name, lim, (suf == NULL || lim == 0) ? "" : suf->name);
+		print("%-8s\t%ud%s\n", limit->name, (unsigned int)lim, (suf == NULL || lim == 0) ? "" : suf->name);
 	}
 }
 
-static long parselimit(const Limit *limit, char *s) {
+static u_quad_t parselimit(const Limit *limit, char *s) {
 	long lim;
 	char *t;
 	const Suffix *suf = limit->suffix;