{
char buf[16*1024];
for (off_t k = b1; k <= b2; k += sizeof (buf)) {
- size_t cc = (size_t) fxmin(sizeof (buf), (unsigned) (b2-k+1));
+ size_t cc = (size_t) fxmin(sizeof (buf), (size_t) (b2-k+1));
fseek(tf, (long) k, SEEK_SET); // position to desired block
if (fread(buf, 1, (size_t) cc, tf) != cc)
fatal("Read error during reverse collation: %s", strerror(errno));
TypeRule(const TypeRule& other);
virtual ~TypeRule();
- bool match(const void*, u_int size, bool verbose = false) const;
+ bool match(const void*, size_t size, bool verbose = false) const;
bool isContinuation() const;
TypeResult getResult() const;
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
+#include <time.h>
#include "config.h"
#include "port.h"
quote = 1;
}
cmdsize = strlen(argv[optind]) + strlen(argv[optind+1]) + 10;
- cmd = malloc(cmdsize);
+ cmd = (char*) malloc(cmdsize);
if (quote) {
cmdlen = snprintf(cmd, cmdsize, "C%s%s:\"%s\"",
isQueuer ? ":" : "", argv[optind], argv[optind+1]);