summaryrefslogtreecommitdiff
path: root/dsimple.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-28 21:46:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 19:53:51 -0800
commitea5ada919258d04e003596ee7079c33b5657dbdc (patch)
tree869653a1aee170b91c7a2761157e4b3b453301d5 /dsimple.c
parentbaed631bfcd091e40f4e84f740c6d86d9fb981b3 (diff)
inline Malloc & Realloc functions
Since stdlib.h versions return void *, remove unneeded casts that the wrappers needed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'dsimple.c')
-rw-r--r--dsimple.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/dsimple.c b/dsimple.c
index 7c4b064..c052af4 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -59,30 +59,6 @@ Display *dpy = NULL;
int screen = 0;
/*
- * Malloc: like malloc but handles out of memory using Fatal_Error.
- */
-char *Malloc(unsigned size)
-{
- char *data;
-
- if (!(data = malloc(size)))
- Fatal_Error("Out of memory!");
-
- return(data);
-}
-
-/*
- * Realloc: like realloc but handles out of memory using Fatal_Error:
- */
-char *Realloc(char *mem, unsigned size)
-{
- if (!(mem = realloc (mem, size)))
- Fatal_Error("Out of memory!");
-
- return mem;
-}
-
-/*
* Get_Display_Name (argc, argv) Look for -display, -d, or host:dpy (obselete)
* If found, remove it from command line. Don't go past a lone -.
*/