summaryrefslogtreecommitdiff
path: root/misc/xtail/patches/patch-ab
blob: 933d1761519a3ad8a303b1565dcd4e2e50b19457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $

--- miscfuncs.c.orig	Mon Jun  5 17:13:22 2000
+++ miscfuncs.c	Mon Jul  9 00:22:08 2001
@@ -281,7 +281,7 @@
 {
 	VOID *p;
 	if ((p = malloc(n)) == NULL) {
-		fprintf(stderr, "%s: malloc(%d) failed\n", Progname, n);
+		fprintf(stderr, "%s: malloc(%ld) failed\n", Progname, (long)n);
 		exit(2);
 	}
 	return p;
@@ -291,7 +291,7 @@
 {
 	VOID *p1;
 	if ((p1 = realloc(p, n)) == NULL) {
-		fprintf(stderr, "%s: realloc(%d) failed\n", Progname, n);
+		fprintf(stderr, "%s: realloc(%ld) failed\n", Progname, (long)n);
 		exit(2);
 	}
 	return p1;