comparison src/lspst.c @ 48:f66078abed38

more fixes for 64 bit format
author carl
date Fri, 18 Jan 2008 15:07:12 -0800
parents b2a7f2e0926a
children fb3818370dd6
comparison
equal deleted inserted replaced
47:5fb8d997feed 48:f66078abed38
4 * Author: Joe Nahmias <joe@nahmias.net> 4 * Author: Joe Nahmias <joe@nahmias.net>
5 * Based on readpst.c by by David Smith <dave.s@earthcorp.com> 5 * Based on readpst.c by by David Smith <dave.s@earthcorp.com>
6 * 6 *
7 */ 7 */
8 8
9 // header file includes 9 #include "define.h"
10
10 #include <stdio.h> 11 #include <stdio.h>
11 #include <stdlib.h> 12 #include <stdlib.h>
12 #include <time.h> 13 #include <time.h>
13 #include <string.h> 14 #include <string.h>
14 #include <ctype.h> 15 #include <ctype.h>
15 #include <errno.h> 16 #include <errno.h>
16 17
17 #include "libpst.h" 18 #include "libpst.h"
18 #include "define.h"
19 #include "timeconv.h" 19 #include "timeconv.h"
20 20
21 struct file_ll { 21 struct file_ll {
22 char *dname; 22 char *dname;
23 int32_t stored_count; 23 int32_t stored_count;
152 char *temp = NULL; //temporary char pointer 152 char *temp = NULL; //temporary char pointer
153 char *d_log = NULL; 153 char *d_log = NULL;
154 154
155 if (argc <= 1) DIE(("Missing PST filename.\n")); 155 if (argc <= 1) DIE(("Missing PST filename.\n"));
156 156
157 #ifdef DEBUG_ALL
158 // force a log file
159 if (!d_log) d_log = "lspst.log";
160 #endif // defined DEBUG_ALL
157 DEBUG_INIT(d_log); 161 DEBUG_INIT(d_log);
158 DEBUG_REGISTER_CLOSE(); 162 DEBUG_REGISTER_CLOSE();
159 DEBUG_ENT("main"); 163 DEBUG_ENT("main");
160 164
161 // Open PST file 165 // Open PST file