]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Now the new taping seems to work well.
authorhades <hades>
Sun, 21 May 2000 21:45:02 +0000 (21:45 +0000)
committerhades <hades>
Sun, 21 May 2000 21:45:02 +0000 (21:45 +0000)
hadaq/evt.c
hadaq/evt.h
hadaq/evtbuild.c

index 0ab739c2902c4792243665d5bed8200d9b6804de..084d30cdd410eb01b99699d0513bf20325d66107 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Id: evt.c,v 6.5 2000-05-21 18:35:47 hades Exp $";
+static char rcsId[] = "$Id: evt.c,v 6.6 2000-05-21 21:45:02 hades Exp $";
 
 #define _ANSI_C_SOURCE
 #include <stddef.h>
@@ -11,7 +11,6 @@ static char rcsId[] = "$Id: evt.c,v 6.5 2000-05-21 18:35:47 hades Exp $";
 
 #include "evt.h"
 #include "subevt.h"
-#include "ansiTape.h"
 
 enum EvtIdx {
        EvtIdx_size,
index 42b218f1a680483524cd2ff087fa3256533db0bb..4b59fefcf3cecd910436651432b5b237c0f6551b 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "hadtu.h"
 #include "subevt.h"
+#include "ansiTape.h"
 
 #define EVT_MAXSIZE (100 * 1024)
 
@@ -59,7 +60,7 @@ void Evt_setRunNr(void *my, UInt4 runNr);
 void *newEvt(UInt4 decoding, UInt4 id, UInt4 runNr);
 void deleteEvt(void *my);
 int Evt_write(void *my, FILE * file);
-int Evt_writeTape(void *my, void *tape);
+int Evt_writeTape(void *my, AnsiTape *tape);
 void *Evt_fget(FILE * file);
 void *Evt_appendSubEvt(void *my, void *subEvt);
 
index 7544c99c36cc5a0213d0fb564447ed1212c0d6ab..1dbfa64b088a7f8976106337759e84db0ee1227e 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.14 2000-05-21 18:35:47 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.15 2000-05-21 21:45:02 hades Exp $";
 
 #define _XOPEN_SOURCE
 #include <unistd.h>
@@ -287,9 +287,9 @@ int main(int argc, char *argv[])
                evt = appendFile(evt, slowCtrlFiles[i]);
        }
        if (outFile != NULL) {
-               if (strcmp(outDev, "file")) {
+               if (strcmp(outDev, "file") == 0) {
                        Evt_write(evt, outFile);
-               } else if (strcmp(outDev, "tape")) {
+               } else if (strcmp(outDev, "tape") == 0) {
                        Evt_writeTape(evt, outTape);
                }
        }
@@ -353,9 +353,9 @@ int main(int argc, char *argv[])
                }
                if (currNrOfSubEvts == nrOfSubEvts) {
                        if (outFile != NULL) {
-                               if (strcmp(outDev, "file")) {
+                               if (strcmp(outDev, "file") == 0) {
                                        Evt_write(evt, outFile);
-                               } else if (strcmp(outDev, "tape")) {
+                               } else if (strcmp(outDev, "tape") == 0) {
                                        Evt_writeTape(evt, outTape);
                                }
                        }
@@ -374,9 +374,9 @@ int main(int argc, char *argv[])
                evt = appendFile(evt, slowCtrlFiles[i]);
        }
        if (outFile != NULL) {
-               if (strcmp(outDev, "file")) {
+               if (strcmp(outDev, "file") == 0) {
                        Evt_write(evt, outFile);
-               } else if (strcmp(outDev, "tape")) {
+               } else if (strcmp(outDev, "tape") == 0) {
                        Evt_writeTape(evt, outTape);
                }
        }