aboutsummaryrefslogtreecommitdiffstats
path: root/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mem.c b/mem.c
index ff76b08..dda95d6 100644
--- a/mem.c
+++ b/mem.c
@@ -6,11 +6,11 @@
#include "err.h"
-void *xmalloc(size_t size) {
- void *rtn = malloc(size);
- if (!rtn) {
- endwin();
- die("Out of memory");
- }
- return rtn;
+void *xmalloc(size_t size)
+{
+ void *rtn = malloc(size);
+ if (!rtn) {
+ die("Out of memory");
+ }
+ return rtn;
}