# HG changeset patch # User Carl Byington # Date 1221432911 25200 # Node ID 57bc6251f8dd516af5b11b3d1053e0a733afd784 # Parent 2e3ec9511166cf3d26f8e77520829b3f9a619d08 fix an installed unpackaged file code cleanup from compiler warnings diff -r 2e3ec9511166 -r 57bc6251f8dd Makefile.am --- a/Makefile.am Sun Sep 14 11:56:19 2008 -0700 +++ b/Makefile.am Sun Sep 14 15:55:11 2008 -0700 @@ -3,8 +3,10 @@ html_DATA = AUTHORS COPYING ChangeLog NEWS README CLEANFILES = xml/libpst xml/Makefile -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libpst.pc +if BUILD_LIBPST_SHARED + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = libpst.pc +endif EXTRA_DIST = Doxyfile libpst.html.tar.gz libpst.spec $(wildcard xml/M*) $(wildcard xml/h*) $(wildcard xml/lib*) diff -r 2e3ec9511166 -r 57bc6251f8dd src/libpst.c --- a/src/libpst.c Sun Sep 14 11:56:19 2008 -0700 +++ b/src/libpst.c Sun Sep 14 15:55:11 2008 -0700 @@ -291,14 +291,13 @@ pst_index_ll *ptr; pst_holder h = {NULL, fp, 0}; size_t size = 0; - int32_t x; DEBUG_ENT("pst_attach_to_file"); if (attach->id_val != (uint64_t)-1) { ptr = pst_getID(pf, attach->id_val); if (ptr) { // pst_num_array *list = pst_parse_block(pf, ptr->id, NULL, NULL); // DEBUG_WARN(("writing file data attachment\n")); - // for (x=0; xcount_item; x++) { + // for (int32_t x=0; xcount_item; x++) { // DEBUG_HEXDUMPC(list->items[x]->data, list->items[x]->size, 0x10); // (void)pst_fwrite(list->items[x]->data, (size_t)1, list->items[x]->size, fp); // } @@ -321,7 +320,6 @@ pst_index_ll *ptr; pst_holder h = {NULL, fp, 1}; size_t size = 0; - int32_t x; char *c; DEBUG_ENT("pst_attach_to_file_base64"); if (attach->id_val != (uint64_t)-1) { @@ -329,7 +327,7 @@ if (ptr) { // pst_num_array *list = pst_parse_block(pf, ptr->id, NULL, NULL); // DEBUG_WARN(("writing base64 data attachment\n")); - // for (x=0; xcount_item; x++) { + // for (int32_t x=0; xcount_item; x++) { // DEBUG_HEXDUMPC(list->items[x]->data, list->items[x]->size, 0x10); // c = base64_encode(list->items[x]->data, list->items[x]->size); // if (c) { @@ -4451,7 +4449,7 @@ size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size) { - size_t z, a, b; + size_t z, a; uint16_t count, y; char *buf3 = NULL, *buf2 = NULL, *t; char *b_ptr;