Mercurial > libpst
diff src/pst2ldif.cpp @ 118:0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
add processing for pst files of type 0x0f
start adding support for properly building and installing libpst.so and the header files required to use it.
remove version.h since the version number is now in config.h
more const correctness issues regarding getopt()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 31 Jan 2009 12:12:36 -0800 |
parents | e213bfcf9aa7 |
children | 6395ced2b8b2 |
line wrap: on
line diff
--- a/src/pst2ldif.cpp Fri Jan 16 15:31:11 2009 -0800 +++ b/src/pst2ldif.cpp Sat Jan 31 12:12:36 2009 -0800 @@ -26,8 +26,8 @@ #include "iconv.h" } -int32_t usage(); -int32_t version(); +void usage(void); +void version(void); char *check_filename(char *fname); void print_ldif_single(const char *attr, const char *value); void print_ldif_address(const char *attr, int nvalues, char *value, ...); @@ -547,7 +547,7 @@ } -int main(int argc, char** argv) { +int main(int argc, char* const* argv) { pst_desc_ll *d_ptr; char *fname = NULL; int c; @@ -657,7 +657,7 @@ } -int32_t usage() { +void usage(void) { version(); printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name); printf("OPTIONS:\n"); @@ -669,11 +669,10 @@ printf("\t-h\t- Help. This screen\n"); printf("\t-l line\t- extra line to insert in the LDIF file for each contact\n"); printf("\t-o\t- use old schema, default is new schema\n"); - return 0; } -int32_t version() { +void version(void) { printf("pst2ldif v%s\n", VERSION); #if BYTE_ORDER == BIG_ENDIAN printf("Big Endian implementation being used.\n"); @@ -685,7 +684,6 @@ #ifdef __GNUC__ printf("GCC %d.%d : %s %s\n", __GNUC__, __GNUC_MINOR__, __DATE__, __TIME__); #endif - return 0; }