#include "hadtu.h"
 #include "subevt.h"
+#include "ansiTape.h"
 
 #define EVT_MAXSIZE (100 * 1024)
 
 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);
 
 
-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>
                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);
                }
        }
                }
                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);
                                }
                        }
                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);
                }
        }