aboutsummarylogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R.Garbe2006-08-14 10:18:24 +0200
committerAnselm R.Garbe2006-08-14 10:18:24 +0200
commit18ee65cee4fcc3e64209f9b32409161fcd5cbe87 (patch)
treeeb097bedc276c5ea8a1b0bd1378c3ef90783a35d /util.c
parent25e3849b6bcffe1fdd0eb6a59c1894a75a5fb166 (diff)
downloadaur-18ee65cee4fcc3e64209f9b32409161fcd5cbe87.tar.gz
implemented restack behavior (floats are on top in tiled mode)
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.c b/util.c
index 4cc748f0ae0f..2414b394fc7a 100644
--- a/util.c
+++ b/util.c
@@ -40,6 +40,15 @@ eprint(const char *errstr, ...)
exit(EXIT_FAILURE);
}
+void *
+erealloc(void *ptr, unsigned int size)
+{
+ void *res = realloc(ptr, size);
+ if(!res)
+ bad_malloc(size);
+ return res;
+}
+
void
spawn(Arg *arg)
{