#include <h/scansbr.h>
#include <h/tws.h>
#include <h/mts.h>
+#include <h/utils.h>
#include "../sbr/m_mktemp.h"
#include <fcntl.h>
pidwait(child_id, OK);
alarm (0);
- if (fstat (fd, &st) != NOTOK && st.st_size > (off_t) 0)
+ if (fstat (fd, &st) != NOTOK && st.st_size > 0)
return fd;
} else {
/*
return;
}
- lseek (md, (off_t) 0, SEEK_SET);
+ lseek(md, 0, SEEK_SET);
while ((i = read (md, buffer, sizeof(buffer))) > 0)
if (write (td, buffer, i) != i)