summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-cif_CIFrdtech.c
blob: 150ac0a7330e78b256751e0b9a86098f1437ea1c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$NetBSD: patch-cif_CIFrdtech.c,v 1.1 2013/03/03 01:11:10 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;
 }
 
$NetBSD: patch-cif_CIFrdtech.c,v 1.1 2013/03/03 01:11:10 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;
 }