comparison src/readpst.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 cfd6175f9334
children 3cb02cb1e6cd
comparison
equal deleted inserted replaced
69:63c02a242ca9 70:b12f4e50e2e8
299 DEBUG_INIT(d_log); 299 DEBUG_INIT(d_log);
300 DEBUG_REGISTER_CLOSE(); 300 DEBUG_REGISTER_CLOSE();
301 DEBUG_ENT("main"); 301 DEBUG_ENT("main");
302 302
303 if (mode == MODE_DECSPEW) { 303 if (mode == MODE_DECSPEW) {
304 FILE *fp; 304 FILE *fp;
305 char buf[1024]; 305 char buf[1024];
306 int l=0; 306 size_t l = 0;
307 if (NULL == (fp = fopen(fname, "rb"))) { 307 if (NULL == (fp = fopen(fname, "rb"))) {
308 fprintf(stderr, "Couldn't open file %s\n", fname ); 308 fprintf(stderr, "Couldn't open file %s\n", fname );
309 DEBUG_RET(); 309 DEBUG_RET();
310 return 1; 310 return 1;
311 } 311 }