X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frstemp.c;h=32048c9310d4d47eeb203f4bda678dc2051e0f2d;hb=5eab6e77e9795fad2ffc3cd6f00163f2a9573da9;hp=fa239f31de91577d6b5293ccfb2dd4f039ceba4c;hpb=deff57cfa9d9b39c4a4f1c9b82a64c6e61d821a4;p=idzebra-moved-to-github.git diff --git a/rset/rstemp.c b/rset/rstemp.c index fa239f3..32048c9 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -1,4 +1,4 @@ -/* $Id: rstemp.c,v 1.61 2005-03-30 09:25:24 adam Exp $ +/* $Id: rstemp.c,v 1.62 2005-04-26 10:09:38 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -44,7 +44,6 @@ static void r_pos(RSFD rfd, double *current, double *total); static void r_flush(RSFD rfd, int mk); static void r_reread(RSFD rfd); - static const struct rset_control control = { "temp", @@ -58,8 +57,6 @@ static const struct rset_control control = r_write, }; -const struct rset_control *rset_kind_temp = &control; - struct rset_temp_info { int fd; /* file descriptor for temp file */ char *fname; /* name of temp file */ @@ -69,7 +66,7 @@ struct rset_temp_info { size_t pos_buf; /* position of first byte in window */ size_t pos_border; /* position of last byte+1 in window */ int dirty; /* window is dirty */ - zint hits; /* no of hits */ + zint hits; /* no of hits */ char *temp_path; }; @@ -83,8 +80,8 @@ struct rset_temp_rfd { static int log_level = 0; static int log_level_initialized = 0; -RSET rstemp_create( NMEM nmem, const struct key_control *kcontrol, - int scope, const char *temp_path, TERMID term) +RSET rstemp_create(NMEM nmem, const struct key_control *kcontrol, + int scope, const char *temp_path, TERMID term) { RSET rnew = rset_create_base(&control, nmem, kcontrol, scope,term); struct rset_temp_info *info;