summaryrefslogtreecommitdiff
path: root/dsimple.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-28 20:02:03 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 19:55:42 -0800
commit431c1ed9e1b445e20a9c0413c3faeee566755b4d (patch)
tree12880cc4c963e7980e86ea30305b56a947fd24b0 /dsimple.c
parentd1dbba01539a89e1d56ca261e18ae2e31f075cfe (diff)
inline Realloc() at the one place it's called
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.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/dsimple.c b/dsimple.c
index 3dbb180..6866afe 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -60,21 +60,6 @@ Display *dpy = NULL;
int screen = 0;
/*
- * Realloc: like realloc but handles out of memory using Fatal_Error.
- */
-char *
-Realloc(char *ptr, int size)
-{
- char *new_ptr;
-
- if (!(new_ptr = realloc(ptr, size)))
- Fatal_Error("Out of memory!");
-
- return(new_ptr);
-}
-
-
-/*
* 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 -.
*/