[Libpst-commits] r62 - trunk

Joseph Nahmias jello at alioth.debian.org
Mon Dec 11 04:04:01 CET 2006


Author: jello
Date: 2006-12-11 04:04:00 +0100 (Mon, 11 Dec 2006)
New Revision: 62

Modified:
   trunk/libpst.c
   trunk/libpst.h
Log:
fix some (more) compiler warnings

Modified: trunk/libpst.c
===================================================================
--- trunk/libpst.c	2006-12-11 01:15:18 UTC (rev 61)
+++ trunk/libpst.c	2006-12-11 03:04:00 UTC (rev 62)
@@ -1529,7 +1529,7 @@
 	  }
 	  
 	  // plus one for good luck (and strings) we will null terminate all reads
-	  na_ptr->items[x]->data = (char*) xmalloc(size+1); 
+	  na_ptr->items[x]->data = (unsigned char *) xmalloc(size+1); 
 	  memcpy(na_ptr->items[x]->data, &(buf[t_ptr]), size);
 	  na_ptr->items[x]->data[size] = '\0'; // null terminate buffer
 	  
@@ -3688,7 +3688,7 @@
   DEBUG_RET();
 }  
 
-int32_t _pst_getBlockOffset(char *buf, int32_t i_offset, int32_t offset, pst_block_offset *p) {
+int32_t _pst_getBlockOffset(unsigned char *buf, int32_t i_offset, int32_t offset, pst_block_offset *p) {
   int32_t of1;
   DEBUG_ENT("_pst_getBlockOffset");
   if (p == NULL || buf == NULL || offset == 0) {

Modified: trunk/libpst.h
===================================================================
--- trunk/libpst.h	2006-12-11 01:15:18 UTC (rev 61)
+++ trunk/libpst.h	2006-12-11 03:04:00 UTC (rev 62)
@@ -480,7 +480,7 @@
 int32_t _pst_free_id (pst_index_ll *head);
 int32_t _pst_free_desc (pst_desc_ll *head);
 int32_t _pst_free_xattrib(pst_x_attrib_ll *x);
-int32_t _pst_getBlockOffset(char *buf, int32_t i_offset, int32_t offset, pst_block_offset *p);
+int32_t _pst_getBlockOffset(unsigned char *buf, int32_t i_offset, int32_t offset, pst_block_offset *p);
 pst_index2_ll * _pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr);
 pst_index_ll * _pst_getID(pst_file* pf, u_int32_t id);
 pst_index_ll * _pst_getID2(pst_index2_ll * ptr, u_int32_t id);




More information about the Libpst-commits mailing list