[libpst-commits] r78 - trunk

Chris Halls halls at alioth.debian.org
Tue Jan 9 15:37:04 CET 2007


Author: halls
Date: 2007-01-09 15:37:04 +0100 (Tue, 09 Jan 2007)
New Revision: 78

Modified:
   trunk/ChangeLog
   trunk/readpst.c
Log:
Apply patch from #304314 to remove some compiler warnings


Index: trunk/readpst.c
===================================================================
--- trunk/readpst.c	(revision 77)
+++ trunk/readpst.c	(revision 78)
@@ -1200,7 +1200,7 @@
 }
 // }}}1
 // int usage() {{{1
-int usage() {
+int32_t usage() {
   DEBUG_ENT("usage");
   version();
   printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name);
@@ -1221,7 +1221,7 @@
 }
 // }}}1
 // int version() {{{1
-int version() {
+int32_t version() {
   DEBUG_ENT("version");
   printf("ReadPST v%s.\n", VERSION);
 #if BYTE_ORDER == BIG_ENDIAN
@@ -1278,7 +1278,7 @@
 }
 // }}}1
 // int close_kmail_dir() {{{1
-int close_kmail_dir() {
+int32_t close_kmail_dir() {
   // change ..
   int x;
   DEBUG_ENT("close_kmail_dir");
@@ -1321,7 +1321,7 @@
 }
 // }}}1
 // int close_recurse_dir() {{{1
-int close_recurse_dir() {
+int32_t close_recurse_dir() {
   int x;
   DEBUG_ENT("close_recurse_dir");
   if (chdir("..")) {
@@ -1401,7 +1401,7 @@
 }
 // }}}1
 // int close_seperate_dir() {{{1
-int close_seperate_dir() {
+int32_t close_seperate_dir() {
   int x;
   DEBUG_ENT("close_seperate_dir");
   if (chdir("..")) {
@@ -1413,7 +1413,7 @@
 }
 // }}}1
 // int mk_seperate_file(struct file_ll *f) {{{1
-int mk_seperate_file(struct file_ll *f) {
+int32_t mk_seperate_file(struct file_ll *f) {
   DEBUG_ENT("mk_seperate_file");
   DEBUG_MAIN(("mk_seperate_file: opening next file to save email\n"));
   if (f->email_count > 999999999) { // bigger than nine 9's
@@ -1532,7 +1532,7 @@
 }
 // }}}1
 // int chr_count(char *str, char x) {{{1
-int chr_count(char *str, char x) {
+int32_t chr_count(char *str, char x) {
   int r = 0;
   while (*str != '\0') {
     if (*str == x)
Index: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	(revision 77)
+++ trunk/ChangeLog	(revision 78)
@@ -7,6 +7,8 @@
 	* lspst: Add usage mesage and option parsing using getopt
 	  (SourceForge #304199)
     * lspst: Fix invalid free calls
+	* Applied patch to remove compiler warnings, thanks!
+	  (SourceForge #304314)
 
 --
 



More information about the libpst-commits mailing list