aewl

diff util.c @ 138:c1185dc7a36e

some cleanups/fixes inspired by Jukka Salmi's feedback
author arg@10ksloc.org
date Fri, 21 Jul 2006 18:34:10 +0200
parents 61490330e90a
children 21071ae1fe68
line diff
     1.1 --- a/util.c	Fri Jul 21 14:11:38 2006 +0200
     1.2 +++ b/util.c	Fri Jul 21 18:34:10 2006 +0200
     1.3 @@ -15,9 +15,7 @@
     1.4  static void
     1.5  bad_malloc(unsigned int size)
     1.6  {
     1.7 -	fprintf(stderr, "fatal: could not malloc() %d bytes\n",
     1.8 -			(int) size);
     1.9 -	exit(EXIT_FAILURE);
    1.10 +	eprint("fatal: could not malloc() %u bytes\n", size);
    1.11  }
    1.12  
    1.13  /* extern */
    1.14 @@ -58,7 +56,7 @@
    1.15  			fprintf(stderr, "dwm: execvp %s", argv[0]);
    1.16  			perror(" failed");
    1.17  		}
    1.18 -		exit(EXIT_FAILURE);
    1.19 +		exit(0);
    1.20  	}
    1.21  	wait(0);
    1.22  }