summaryrefslogtreecommitdiff
path: root/cad/ntesla/patches/patch-ac
blob: eb0e9a1ea593342ef1b49e39d729988bc2b71383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ac,v 1.1 2003/12/17 16:58:25 sketch Exp $

--- interp.c.orig	Fri Mar 28 12:17:12 1997
+++ interp.c	Thu Oct 23 08:13:11 2003
@@ -119,7 +119,7 @@
 
 	/* Ratio is too extreme */
 	if(ratio > 100.0) {
-		restrict();
+		badratio();
 		return -1.0;
 	}
 
@@ -132,7 +132,7 @@
 {
 	/* Ratio is too extreme */
 	if(ratio < 0.1 || ratio > 50.0) {
-		restrict();
+		badratio();
 		return -1.0;
 	}
 
@@ -146,7 +146,7 @@
 {
 	/* Ratio is too extreme */
 	if(ratio < 0.1 || ratio > 10.0) {
-		restrict();
+		badratio();
 		return -1.0;
 	}
 
@@ -155,7 +155,7 @@
 
 /* Display the worst-case restriction to avoid confusion */
 void
-restrict()
+badratio()
 {
 	E "\007Length divided by Diameter must be between 0.1 and 10.0 ");
 }