aboutsummaryrefslogtreecommitdiffstats
path: root/mem.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-22 20:50:00 +0800
committerverdant <im@verdant.ee>2026-07-22 20:50:00 +0800
commit541e92b81ee1b5973c4e9c003821d79a6c6f9b47 (patch)
treec30069c6f35902ad1effeb457387155f8b569d6e /mem.c
parent40926f03b5cf422e60d2f9eec9a54375a2975db9 (diff)
downloadsf-541e92b81ee1b5973c4e9c003821d79a6c6f9b47.tar.gz
sf-541e92b81ee1b5973c4e9c003821d79a6c6f9b47.zip
Reformat err.c mem.c
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;
}