ref: a0629529a006efd629e0cd89009b4b95b587ac22
parent: 9057331b1a5952440d7e48e29492a4f7cfd111a3
author: Ori Bernstein <[email protected]>
date: Mon Jun 11 14:08:24 EDT 2012
Use long/vlong consistently.
--- a/parse/pickle.c
+++ b/parse/pickle.c
@@ -80,7 +80,7 @@
return c;
}
-static void wrint(FILE *fd, int32_t val)
+static void wrint(FILE *fd, long val)
{
char buf[4];
be32(val, buf);
@@ -88,10 +88,10 @@
die("Unexpected EOF");
}
-static int32_t rdint(FILE *fd)
+static long rdint(FILE *fd)
{
char buf[4];
- if (fread(buf, sizeof(uint32_t), 1, fd) < 4)
+ if (fread(buf, 4, 1, fd) < 4)
die("Unexpected EOF");
return host32(buf);
}