diff src/readpst.c @ 75:987aa872294e stable-0-6-11

Use ftello/fseeko to properly handle large files. Document and properly use datasize field in b5 blocks. Fix some MSVC compile issues and collect MSVC dependencies into one place.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2008 12:00:58 -0700
parents 3cb02cb1e6cd
children 87216aefc6df
line wrap: on
line diff
--- a/src/readpst.c	Thu May 29 18:59:38 2008 -0700
+++ b/src/readpst.c	Tue Jun 03 12:00:58 2008 -0700
@@ -6,7 +6,6 @@
  */
 #include "define.h"
 #include "libstrfunc.h"
-//#include "vbuf.h"
 #include "libpst.h"
 #include "common.h"
 #include "timeconv.h"
@@ -19,14 +18,6 @@
 
 // max size of the c_time char*. It will store the date of the email
 #define C_TIME_SIZE 500
-#define PERM_DIRS 0777
-
-// macro used for creating directories
-#ifndef WIN32
-#define D_MKDIR(x) mkdir(x, PERM_DIRS)
-#else
-#define D_MKDIR(x) mkdir(x)
-#endif
 
 struct file_ll {
     char *name;
@@ -573,7 +564,7 @@
 
     if (chdir(dir_name)) {
         x = errno;
-        DIE(("mk_recurse_dir: Cannot change to directory %s: %s\n", dir, strerror(x)));
+        DIE(("mk_seperate_dir: Cannot change to directory %s: %s\n", dir, strerror(x)));
     }
 
     if (overwrite) {