blob: c34272a163b526155c50f9903a23ed0f934d0753 (
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
28
29
30
|
$NetBSD: patch-ab,v 1.1 2006/07/29 04:35:02 minskim Exp $
--- dsimple.c.orig 1995-10-18 23:59:17.000000000 +0000
+++ dsimple.c
@@ -5,6 +5,7 @@
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <stdio.h>
+#include <stdlib.h>
/*
* Other_stuff.h: Definitions of routines in other_stuff.
*
@@ -46,7 +47,7 @@ extern int screen;
char *Malloc(size)
unsigned size;
{
- char *data, *malloc();
+ char *data;
if (!(data = malloc(size)))
Fatal_Error("Out of memory!");
@@ -62,7 +63,7 @@ char *Realloc(ptr, size)
char *ptr;
int size;
{
- char *new_ptr, *realloc();
+ char *new_ptr;
if (!ptr)
return(Malloc(size));
|