#include "lib/fastbuf.h"
#include "lib/lfs.h"
#include "lib/conf.h"
-#include "lib/pools.h"
+#include "lib/mempool.h"
#include "lib/object.h"
#include "lib/lizard.h"
#include "lib/bbuf.h"
-#include "charset/unistream.h"
+#include "lib/ff-utf8.h"
#include <stdio.h>
#include <stdlib.h>
type = BUCKET_TYPE_PLAIN;
else if (sscanf(arg, "%x", &type) != 1)
die("Type `%s' is not a hexadecimal number");
+ if (type < 10)
+ type += BUCKET_TYPE_PLAIN;
attr_set_type(type);
in = bfdopen_shared(0, 4096);
bputl(b, lizard_filled
#if 0 //TEST error resilience: write wrong length
+1
+#endif
+ );
+ bputl(b, adler32(lizard_buf.ptr, lizard_filled)
+#if 0 //TEST error resilience: write wrong checksum
+ +1
#endif
);
uns want_len = lizard_filled * LIZARD_MAX_MULTIPLY + LIZARD_MAX_ADD;
}
else
dump_parsed_bucket(out, &h, b);
+ bputc(out, '\n');
}
bclose(out);
obuck_cleanup();