aewl

diff util.c @ 461:9d23330a5268

removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined)
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 12 Sep 2006 10:57:28 +0200
parents 44a55e6e46bf
children 740c4bfc3124
line diff
     1.1 --- a/util.c	Tue Sep 12 09:50:06 2006 +0200
     1.2 +++ b/util.c	Tue Sep 12 10:57:28 2006 +0200
     1.3 @@ -12,8 +12,7 @@
     1.4  /* extern */
     1.5  
     1.6  void *
     1.7 -emallocz(unsigned int size)
     1.8 -{
     1.9 +emallocz(unsigned int size) {
    1.10  	void *res = calloc(1, size);
    1.11  
    1.12  	if(!res)
    1.13 @@ -22,8 +21,7 @@
    1.14  }
    1.15  
    1.16  void
    1.17 -eprint(const char *errstr, ...)
    1.18 -{
    1.19 +eprint(const char *errstr, ...) {
    1.20  	va_list ap;
    1.21  
    1.22  	va_start(ap, errstr);
    1.23 @@ -33,8 +31,7 @@
    1.24  }
    1.25  
    1.26  void *
    1.27 -erealloc(void *ptr, unsigned int size)
    1.28 -{
    1.29 +erealloc(void *ptr, unsigned int size) {
    1.30  	void *res = realloc(ptr, size);
    1.31  	if(!res)
    1.32  		eprint("fatal: could not malloc() %u bytes\n", size);
    1.33 @@ -42,8 +39,7 @@
    1.34  }
    1.35  
    1.36  void
    1.37 -spawn(Arg *arg)
    1.38 -{
    1.39 +spawn(Arg *arg) {
    1.40  	static char *shell = NULL;
    1.41  
    1.42  	if(!shell && !(shell = getenv("SHELL")))