X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/7817523a685f0dbba2e074a448099558a54b1b9c..7fb4c2b8187ef519ede676953d536914f13cf57c:/util.c?ds=sidebyside diff --git a/util.c b/util.c index dff7af7..1b9bc57 100644 --- a/util.c +++ b/util.c @@ -29,16 +29,6 @@ emalloc(unsigned int size) return res; } -void * -emallocz(unsigned int size) -{ - void *res = calloc(1, size); - - if(!res) - bad_malloc(size); - return res; -} - void eprint(const char *errstr, ...) { @@ -58,11 +48,3 @@ estrdup(const char *str) bad_malloc(strlen(str)); return res; } - -void -swap(void **p1, void **p2) -{ - void *tmp = *p1; - *p1 = *p2; - *p2 = tmp; -}