summaryrefslogtreecommitdiff
path: root/spectro/dtp51.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-03 20:38:41 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-03 20:38:41 +0100
commitba627dd9ecb578e9852c7b9cce67ec63199d1acf (patch)
tree27c4258311ca8c8ed7ff67a8a0bc7280e8fcae79 /spectro/dtp51.c
parent69aec3b712232e93600ecd741269fed1f90b412a (diff)
parent3abb40d43649adb3807180692d8579c405524675 (diff)
Merge branch 'release/2.0.0+repack-1'2.0.0+repack-1
Diffstat (limited to 'spectro/dtp51.c')
-rwxr-xr-x[-rw-r--r--]spectro/dtp51.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/spectro/dtp51.c b/spectro/dtp51.c
index 0b2ecab..70932e5 100644..100755
--- a/spectro/dtp51.c
+++ b/spectro/dtp51.c
@@ -51,6 +51,7 @@
#include "sa_config.h"
#include "numsup.h"
#endif /* !SALONEINSTLIB */
+#include "cgats.h"
#include "xspect.h"
#include "insttypes.h"
#include "conv.h"
@@ -896,7 +897,7 @@ dtp51_get_set_opt(inst *pp, inst_opt_type m, ...) {
}
/* Constructor */
-extern dtp51 *new_dtp51(icoms *icom, instType itype) {
+extern dtp51 *new_dtp51(icoms *icom, instType dtype) {
dtp51 *p;
if ((p = (dtp51 *)calloc(sizeof(dtp51),1)) == NULL) {
a1loge(icom->log, 1, "new_dtp51: malloc failed!\n");
@@ -918,7 +919,7 @@ extern dtp51 *new_dtp51(icoms *icom, instType itype) {
p->del = dtp51_del;
p->icom = icom;
- p->itype = itype;
+ p->dtype = dtype;
p->native_calstd = xcalstd_xrdi; /* Not alterable */