From 7ec39d7df253dd6f7dc92854e5582949dfa823a5 Mon Sep 17 00:00:00 2001
From: pgen
Date: Mon, 8 Oct 2018 19:31:57 +0200
Subject: Add/improve comments, reformat and clarify code
---
xmalloc.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
(limited to 'xmalloc.c')
diff --git a/xmalloc.c b/xmalloc.c
index 80622ae..3e9633e 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -4,15 +4,13 @@
/* Created by Kevin Locke (from numerous canonical examples) */
/* */
+/* Adapted for use by smenu */
+/* */
/* I hereby place this file in the public domain. It may be freely */
/* reproduced, distributed, used, modified, built upon, or otherwise */
/* employed by anyone for any purpose without restriction. */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
-/* ================= */
-/* Customized malloc */
-/* ================= */
-
#include
#include
#include
@@ -20,6 +18,9 @@
#include "xmalloc.h"
+/* ================= */
+/* Customized malloc */
+/* ================= */
void *
xmalloc(size_t size)
{
--
cgit v1.2.3