=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/main.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/make/main.c 1996/03/27 19:32:36 1.6 --- src/usr.bin/make/main.c 1996/04/21 23:43:21 1.7 *************** *** 1,5 **** ! /* $OpenBSD: main.c,v 1.6 1996/03/27 19:32:36 niklas Exp $ */ ! /* $NetBSD: main.c,v 1.26 1996/03/11 13:45:33 christos Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. --- 1,5 ---- ! /* $OpenBSD: main.c,v 1.7 1996/04/21 23:43:21 deraadt Exp $ */ ! /* $NetBSD: main.c,v 1.28 1996/03/31 21:30:05 christos Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. *************** *** 50,56 **** static char sccsid[] = "@(#)main.c 5.25 (Berkeley) 4/1/91"; static char rcsid[] = "$NetBSD: main.c,v 1.26 1996/03/11 13:45:33 christos Exp $"; #else ! static char rcsid[] = "$OpenBSD: main.c,v 1.6 1996/03/27 19:32:36 niklas Exp $"; #endif #endif /* not lint */ --- 50,56 ---- static char sccsid[] = "@(#)main.c 5.25 (Berkeley) 4/1/91"; static char rcsid[] = "$NetBSD: main.c,v 1.26 1996/03/11 13:45:33 christos Exp $"; #else ! static char rcsid[] = "$OpenBSD: main.c,v 1.7 1996/04/21 23:43:21 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 981,995 **** * emalloc -- * malloc, but die on error. */ ! char * emalloc(len) size_t len; { ! char *p; ! if ((p = (char *) malloc(len)) == NULL) enomem(); return(p); } /* --- 981,1009 ---- * emalloc -- * malloc, but die on error. */ ! void * emalloc(len) size_t len; { ! void *p; ! if ((p = malloc(len)) == NULL) enomem(); return(p); + } + + /* + * erealloc -- + * realloc, but die on error. + */ + void * + erealloc(ptr, size) + void *ptr; + size_t size; + { + if ((ptr = realloc(ptr, size)) == NULL) + enomem(); + return(ptr); } /*