X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdcompact.c;h=2ab4580a024d39a4de8cf5cdd6046f70138fcbeb;hb=c63fd1f0a9c65ef4a70d4e67c2a86941aaf70a3f;hp=1c792b354b62f0859a44c59d0d61594b1c931ae9;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/dict/dcompact.c b/dict/dcompact.c index 1c792b3..2ab4580 100644 --- a/dict/dcompact.c +++ b/dict/dcompact.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -34,7 +34,7 @@ static void dict_copy_page(Dict dict, char *to_p, char *from_p, int *map) int i, slen, no = 0; short *from_indxp, *to_indxp; char *from_info, *to_info; - + from_indxp = (short*) ((char*) from_p+DICT_bsize(from_p)); to_indxp = (short*) ((char*) to_p+DICT_bsize(to_p)); to_info = (char*) to_p + DICT_infoffset; @@ -70,7 +70,7 @@ static void dict_copy_page(Dict dict, char *to_p, char *from_p, int *map) from_info += sizeof(Dict_ptr); memcpy(&subchar, from_info, sizeof(subchar)); from_info += sizeof(Dict_char); - + memcpy(to_info, &subptr, sizeof(Dict_ptr)); to_info += sizeof(Dict_ptr); memcpy(to_info, &subchar, sizeof(Dict_char)); @@ -103,7 +103,7 @@ int dict_copy_compact(BFiles bfs, const char *from_name, const char *to_name) return -1; map[0] = 0; map[1] = dict_from->head.page_size; - + for (i = 1; i < (int) (dict_from->head.last); i++) { void *buf;