summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-cif_CIFrdtech.c
blob: 9bd0e7cd5954f31cc963b1933a99435d6f91c56a (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-cif_CIFrdtech.c,v 1.2 2013/03/07 22:05:12 joerg Exp $

--- cif/CIFrdtech.c.orig	2013-03-02 22:29:11.000000000 +0000
+++ cif/CIFrdtech.c
@@ -39,6 +39,7 @@ static char rcsid[] __attribute__ ((unus
 #include "cif/CIFread.h"
 #include "calma/calmaInt.h"
 #include "utils/malloc.h"
+#include "cif/cif.h"
 
 /* Pointer to a list of all the CIF-reading styles: */
 
@@ -1181,17 +1182,15 @@ cifParseCalmaNums(str, numArray, numNums
  * ----------------------------------------------------------------------------
  */
 
-int
-CIFTechInputScale(n, d, opt)
-    int n, d;
-    bool opt;
+void
+CIFTechInputScale(int n, int d, bool opt)
 {
     CIFReadStyle *istyle = cifCurReadStyle;
     CIFReadLayer *cl;
     CIFOp *op;
     int lmult, i, lgcf;
 
-    if (istyle == NULL) return 0;
+    if (istyle == NULL) return;
 
     /* fprintf(stderr, "CIF input style %s:\n", istyle->crs_name); */
 
@@ -1244,6 +1243,5 @@ CIFTechInputScale(n, d, opt)
 		    op->co_distance /= lmult;
 	}
     }
-    return lmult;
 }