comparison src/debug.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 f66078abed38
children 3cb02cb1e6cd
comparison
equal deleted inserted replaced
69:63c02a242ca9 70:b12f4e50e2e8
45 } 45 }
46 46
47 47
48 #define NUM_COL 30 48 #define NUM_COL 30
49 void pst_debug_hexdumper(FILE *out, unsigned char *buf, size_t size, int col, int delta) { 49 void pst_debug_hexdumper(FILE *out, unsigned char *buf, size_t size, int col, int delta) {
50 int off = 0, toff; 50 size_t off = 0, toff;
51 int count = 0; 51 int count = 0;
52 52
53 if (!out) return; // no file 53 if (!out) return; // no file
54 if (col == -1) col = NUM_COL; 54 if (col == -1) col = NUM_COL;
55 fprintf(out, "\n"); 55 fprintf(out, "\n");