Mercurial > libpst
diff src/readpstlog.c @ 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 | 987aa872294e |
children | bdb38b434c0a |
line wrap: on
line diff
--- a/src/readpstlog.c Fri Jan 16 15:31:11 2009 -0800 +++ b/src/readpstlog.c Sat Jan 31 12:12:36 2009 -0800 @@ -2,12 +2,12 @@ #define BUF_SIZE 4096 -int usage(); +void usage(); size_t get(void * buf, int size, unsigned int count, FILE *fp); int split_args(char *args, int **targ); int is_in(int a, int *b, int c); -int main(int argc, char** argv) { +int main(int argc, char* const* argv) { int identity = 0; int level = 0; int x, ptr, stop=0, flag; @@ -190,7 +190,7 @@ return z; } -int usage() { +void usage() { printf("readlog -t[show_type] -x[exclude_type] -f[format] filename\n"); printf("\tformat:\n\t\tt: text log format\n"); printf("\t\ti: indented text log format\n"); @@ -198,7 +198,6 @@ "[ie, 2,4,1,6]\n"); printf("\texclude_type:\n\t\tcomma separated list of types to exclude " "[ie, 1,5,3,7]\n"); - return 0; }