summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/util.c b/util.c
index 0e8828c..d0444c5 100644
--- a/util.c
+++ b/util.c
@@ -13,16 +13,14 @@
/* static */
static void
-badmalloc(unsigned int size)
-{
+badmalloc(unsigned int size) {
eprint("fatal: could not malloc() %u bytes\n", size);
}
/* extern */
void *
-emalloc(unsigned int size)
-{
+emalloc(unsigned int size) {
void *res = malloc(size);
if(!res)
badmalloc(size);
@@ -30,8 +28,7 @@ emalloc(unsigned int size)
}
void
-eprint(const char *errstr, ...)
-{
+eprint(const char *errstr, ...) {
va_list ap;
va_start(ap, errstr);
@@ -41,8 +38,7 @@ eprint(const char *errstr, ...)
}
char *
-estrdup(const char *str)
-{
+estrdup(const char *str) {
void *res = strdup(str);
if(!res)
badmalloc(strlen(str));
d=8e302717cb2d03c79c2f372f5e0489ea54dbb440&follow=1'>input focus: fix for reparenting wmsGravatar Connor Lane Smith 1-1/+1 2011-09-30fix monitor select when no focusGravatar Connor Lane Smith 1-1/+1 2011-09-20tweak matchGravatar Connor Lane Smith 1-2/+2 2011-09-20update manpageGravatar Connor Lane Smith 1-9/+6 2011-09-19detect active monitor using input focusGravatar Connor Lane Smith 1-7/+12 2011-09-19add token matchingGravatar Connor Lane Smith 1-23/+34 2011-09-19change version to 'hg'Gravatar Connor Lane Smith 1-1/+1 2011-07-24dmenu_run: sh -cGravatar Connor Lane Smith 1-1/+1 2011-07-22fix loadfontGravatar Connor Lane Smith 1-12/+13 2011-07-19Added tag 4.4 for changeset 2b105eaae831Gravatar Connor Lane Smith 1-0/+1 2011-07-19add lsx.1 to distGravatar Connor Lane Smith 1-1/+1 2011-07-17tweaksGravatar Connor Lane Smith 2-2/+2 2011-07-14efficiency tweaksGravatar Connor Lane Smith 2-60/+44 2011-07-14fix extra warningGravatar Connor Lane Smith 1-1/+1 2011-07-06simpler vlineGravatar Connor Lane Smith 1-4/+2 2011-07-04rebind ^N ^PGravatar Connor Lane Smith 2-3/+3 2011-06-25include limits.hGravatar Connor Lane Smith 1-0/+1 2011-06-23make clean lsxGravatar Connor Lane Smith 1-1/+1 2011-06-23lsx: check snprintfGravatar Connor Lane Smith 1-4/+3 2011-06-18update draw.cGravatar Connor Lane Smith 2-14/+14 2011-06-18simpler lsxGravatar Connor Lane Smith 3-11/+6 2011-06-13new dmenu_runGravatar Connor Lane Smith 5-26/+15