X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fsortidx.c;h=5c9d5a3b81183b2f53842ce27aa7c73bc9bad9d3;hb=69da23537c6bb71ab948e079708bf8ea090de73f;hp=8993d1bf60ba39f00471f30b999a7a26fc1cf772;hpb=dc017c2fd1686d5a1bb5b04c45f11c69da60421a;p=idzebra-moved-to-github.git diff --git a/index/sortidx.c b/index/sortidx.c index 8993d1b..5c9d5a3 100644 --- a/index/sortidx.c +++ b/index/sortidx.c @@ -4,14 +4,20 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: sortidx.c,v $ - * Revision 1.2 1998-06-25 09:55:50 adam + * Revision 1.4 1999-11-30 13:48:03 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.3 1999/05/26 07:49:13 adam + * C++ compilation. + * + * Revision 1.2 1998/06/25 09:55:50 adam * Minor changes - fixex headers. * */ #include -#include +#include #include #include @@ -39,12 +45,12 @@ struct sortIdx { SortIdx sortIdx_open (BFiles bfs, int write_flag) { - SortIdx si = xmalloc (sizeof(*si)); + SortIdx si = (SortIdx) xmalloc (sizeof(*si)); si->bfs = bfs; si->write_flag = write_flag; si->current_file = NULL; si->files = NULL; - si->entry_buf = xmalloc (SORT_IDX_ENTRYSIZE); + si->entry_buf = (char *) xmalloc (SORT_IDX_ENTRYSIZE); return si; } @@ -75,7 +81,7 @@ int sortIdx_type (SortIdx si, int type) si->current_file = sf; return 0; } - sf = xmalloc (sizeof(*sf)); + sf = (struct sortFile *) xmalloc (sizeof(*sf)); sf->type = type; sf->bf = NULL; sf->next = si->files;