Module Name: src Committed By: dholland Date: Sat Dec 25 20:35:25 UTC 2010
Modified Files: src/usr.bin/make: make_malloc.c Log Message: Many C libraries don't set errno when make fails, so always use strerror(ENOMEM). To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/make_malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/make_malloc.c diff -u src/usr.bin/make/make_malloc.c:1.5 src/usr.bin/make/make_malloc.c:1.6 --- src/usr.bin/make/make_malloc.c:1.5 Sat Jan 24 23:19:50 2009 +++ src/usr.bin/make/make_malloc.c Sat Dec 25 20:35:25 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: make_malloc.c,v 1.5 2009/01/24 23:19:50 dsl Exp $ */ +/* $NetBSD: make_malloc.c,v 1.6 2010/12/25 20:35:25 dholland Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ #ifdef MAKE_NATIVE #include <sys/cdefs.h> -__RCSID("$NetBSD: make_malloc.c,v 1.5 2009/01/24 23:19:50 dsl Exp $"); +__RCSID("$NetBSD: make_malloc.c,v 1.6 2010/12/25 20:35:25 dholland Exp $"); #endif #include <stdio.h> @@ -48,7 +48,7 @@ { extern char *progname; - (void)fprintf(stderr, "%s: %s.\n", progname, strerror(errno)); + (void)fprintf(stderr, "%s: %s.\n", progname, strerror(ENOMEM)); exit(2); }