From 431c1ed9e1b445e20a9c0413c3faeee566755b4d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 28 Jan 2011 20:02:03 -0800 Subject: inline Realloc() at the one place it's called Signed-off-by: Alan Coopersmith Reviewed-by: Julien Cristau --- dsimple.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'dsimple.c') diff --git a/dsimple.c b/dsimple.c index 3dbb180..6866afe 100644 --- a/dsimple.c +++ b/dsimple.c @@ -59,21 +59,6 @@ char *program_name = "unknown_program"; 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 -. -- cgit v1.2.3