diff src/readpstlog.c @ 46:b2a7f2e0926a

more fixes for 64 bit format
author carl
date Sat, 12 Jan 2008 15:20:53 -0800
parents f6db1f060a95
children f66078abed38
line wrap: on
line diff
--- a/src/readpstlog.c	Tue Jan 08 16:33:23 2008 -0800
+++ b/src/readpstlog.c	Sat Jan 12 15:20:53 2008 -0800
@@ -21,15 +21,16 @@
 
 int main(int argc, char** argv) {
 	int level = 0;
-	int *i=NULL, x, ptr, stop=0, flag;
+    off_t *i = NULL;
+	int x, ptr, stop=0, flag;
 	char *fname, *buf, rec_type;
 	unsigned char version;
 	int *show_type=NULL, show_size=0;
 	int *ex_type=NULL, ex_size=0;
-	unsigned int funcname, filename, text, end, dtype, line, c;
+	unsigned int funcname=0, filename=0, text=0, end=0, dtype=0, line=0, c;
 	FILE *fp;
-	struct _debug_file_rec_m mfile_rec;
-	struct _debug_file_rec_l lfile_rec;
+	struct pst_debug_file_rec_m mfile_rec;
+	struct pst_debug_file_rec_l lfile_rec;
 	char format = 'D';  // default
 	while ((c = getopt(argc, argv, "f:t:x:")) != -1) {
 		switch(c) {