summaryrefslogtreecommitdiff
path: root/benchmarks/zelibm/patches/patch-ab
blob: 29fd4b16464d3e243aa61a97e9514e006c09f8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ab,v 1.1.1.1 2005/07/27 17:06:53 drochner Exp $

--- libmtest.c.orig	2004-04-16 21:22:20.000000000 +0200
+++ libmtest.c	2004-04-16 21:23:56.000000000 +0200
@@ -4,7 +4,6 @@
    form on Microsoft and Be systems.  */
 
 #include <errno.h>
-#include <error.h>
 #include <float.h>
 #include <gmp.h>
 #include <math.h>
@@ -214,7 +213,7 @@
   /* Allocate the memory for the result.  */
   result = (double *) calloc (n,  2 * sizeof (double));
   if (result == NULL)
-    error (EXIT_FAILURE, errno, "cannot create array for result");
+    exit (EXIT_FAILURE);
 
   for (cnt = 0; cnt < nprocs; ++cnt)
     {