summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 13:03:53 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 13:03:53 +0200
commita1d0f819661f2be48f7a03ddd001f2a1a8f325e4 (patch)
tree94fb44049473e55b93f1d5b6baedd561c4c83a50 /util.c
parentfocus on view change as well (diff)
downloaddwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.tar.gz
dwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.zip
searching for a better way to discard enter notifies
Diffstat (limited to '')
-rw-r--r--util.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/util.c b/util.c
index d8e6612..e95dfc5 100644
--- a/util.c
+++ b/util.c
@@ -6,7 +6,6 @@
6#include <stdarg.h> 6#include <stdarg.h>
7#include <stdio.h> 7#include <stdio.h>
8#include <stdlib.h> 8#include <stdlib.h>
9#include <string.h>
10#include <sys/types.h> 9#include <sys/types.h>
11#include <sys/wait.h> 10#include <sys/wait.h>
12#include <unistd.h> 11#include <unistd.h>
@@ -39,33 +38,6 @@ emallocz(unsigned int size)
39 return res; 38 return res;
40} 39}
41 40
42void *
43emalloc(unsigned int size)
44{
45 void *res = malloc(size);
46 if(!res)
47 bad_malloc(size);
48 return res;
49}
50
51void *
52erealloc(void *ptr, unsigned int size)
53{
54 void *res = realloc(ptr, size);
55 if(!res)
56 bad_malloc(size);
57 return res;
58}
59
60char *
61estrdup(const char *str)
62{
63 char *res = strdup(str);
64 if(!res)
65 bad_malloc(strlen(str));
66 return res;
67}
68
69void 41void
70swap(void **p1, void **p2) 42swap(void **p1, void **p2)
71{ 43{