diff src/readpstlog.c @ 125:23a36ac0514d

recover dropped pragma pack line, use int64_t rather than off_t to avoid forcing users of the shared library to enable large file support.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Feb 2009 15:01:47 -0800
parents ab2a11e72250
children fc11b1d1ad34
line wrap: on
line diff
--- a/src/readpstlog.c	Tue Feb 03 11:00:16 2009 -0800
+++ b/src/readpstlog.c	Tue Feb 03 15:01:47 2009 -0800
@@ -68,13 +68,13 @@
     buf = (char*) xmalloc(BUF_SIZE);
 
     while (!stop) {
-        uint64_t temp;
-        if (fread(&temp, sizeof(uint64_t), 1, fp)<=0) break;
+        int64_t temp;
+        if (fread(&temp, sizeof(int64_t), 1, fp)<=0) break;
         x = (int)temp;
         ptr = 0;
         if (x > 0) {
-            uint64_t i[x+1]; // plus 1 because we want to read the offset of the next index
-            if (get(i, sizeof(uint64_t), x+1, fp)==0) {
+            int64_t i[x+1]; // plus 1 because we want to read the offset of the next index
+            if (get(i, sizeof(int64_t), x+1, fp)==0) {
                 // we have reached the end of the debug file
                 printf("oh dear. we must now end\n");
                 break;