diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 10:59:00 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 10:59:00 +0200 |
commit | 81bcf078f6c510314f140471efb8952160fdb3ad (patch) | |
tree | 2a85bc526dd9787a0e25be779263903e6f855768 /util.c | |
parent | 0e5f467aa85e318ed27fc5d6d3826426a06ef3c3 (diff) | |
download | dmenu-81bcf078f6c510314f140471efb8952160fdb3ad.tar.gz dmenu-81bcf078f6c510314f140471efb8952160fdb3ad.tar.bz2 dmenu-81bcf078f6c510314f140471efb8952160fdb3ad.zip |
made function signatures more consistent to my coding style1.0
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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)); |