Mercurial > libpst
diff src/readpstlog.c @ 70:b12f4e50e2e8
Patch from Joachim Metz <joachim.metz@gmail.com> for 64 bit compile.
Signed/unsigned cleanup from 'CFLAGS=-Wextra ./configure'
Reindent vbuf.c to make it readable.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 11 May 2008 10:04:33 -0700 |
parents | 034641c26ab9 |
children | 987aa872294e |
line wrap: on
line diff
--- a/src/readpstlog.c Sat May 10 12:45:23 2008 -0700 +++ b/src/readpstlog.c Sun May 11 10:04:33 2008 -0700 @@ -29,13 +29,16 @@ unsigned char version; int *show_type=NULL, show_size=0; int *ex_type=NULL, ex_size=0; - unsigned int funcname=0, filename=0, text=0, end=0, dtype=0, line=0, c; + unsigned int funcname=0, filename=0, text=0, end=0, dtype=0, line=0; + int c; + char ch; FILE *fp; 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) { + ch = c; + switch(ch) { case 'f': // change the output format format = toupper(optarg[0]); @@ -112,7 +115,8 @@ if (dtype == DEBUG_FUNCENT_NO) level++; if ((show_type == NULL || is_in(dtype, show_type, show_size)) && (ex_type == NULL || !is_in(dtype, ex_type, ex_size))) { - c = 0; flag = 0; + unsigned int c = 0; + flag = 0; while (c < end) { int ii = (level-1) * 4; if (ii < 0) ii = 0;