summaryrefslogtreecommitdiff
path: root/dsimple.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-28 19:57:52 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 19:55:36 -0800
commitd1dbba01539a89e1d56ca261e18ae2e31f075cfe (patch)
tree420379d0385d9bd7e507ad058134487514c7d8a0 /dsimple.h
parent184f5f3948b98abd21082e0cdc302502d70c3c49 (diff)
Remove unneeded Malloc function
The only place it was called was in Realloc, if the initial pointer was NULL, but ANSI C89 already guarantees realloc(NULL, size) will be handled as malloc(size), so we don't need to handle that case ourselves. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'dsimple.h')
-rw-r--r--dsimple.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/dsimple.h b/dsimple.h
index e49837c..c1ccce6 100644
--- a/dsimple.h
+++ b/dsimple.h
@@ -58,7 +58,6 @@ extern int screen; /* The current screen */
/* Declarations for functions in dsimple.c */
-char *Malloc(unsigned);
char *Realloc(char *, int);
void Setup_Display_And_Screen(int *, char **);
void Close_Display(void);