aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-text-index.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-text-index.c')
-rw-r--r--camel/camel-text-index.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index 3d0e71a265..60dc5b7402 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -190,11 +190,13 @@ text_index_add_name_to_word(CamelIndex *idx, const char *word, camel_key_t namei
data = 0;
wordid = camel_key_table_add(p->word_index, word, 0, 0);
if (wordid == 0){
- g_warning("Could not create key entry for word '%s': %s\n", word, strerror(errno));
+ g_warning ("Could not create key entry for word '%s': %s\n",
+ word, strerror (errno));
return;
}
if (camel_partition_table_add(p->word_hash, word, wordid) == -1) {
- g_warning("Could not create hash entry for word '%s': %s\n", word, strerror(errno));
+ g_warning ("Could not create hash entry for word '%s': %s\n",
+ word, strerror (errno));
return;
}
rb->words++;
@@ -202,7 +204,8 @@ text_index_add_name_to_word(CamelIndex *idx, const char *word, camel_key_t namei
} else {
data = camel_key_table_lookup(p->word_index, wordid, NULL, 0);
if (data == 0) {
- g_warning("Could not find key entry for word '%s': %s\n", word, strerror(errno));
+ g_warning ("Could not find key entry for word '%s': %s\n",
+ word, strerror (errno));
return;
}
}
@@ -902,14 +905,14 @@ camel_text_index_check(const char *path)
sprintf(block, "%s.index", path);
blocks = camel_block_file_new(block, O_RDONLY, CAMEL_TEXT_INDEX_VERSION, CAMEL_BLOCK_SIZE);
if (blocks == NULL) {
- io(printf("Check failed: No block file: %s\n", strerror(errno)));
+ io(printf("Check failed: No block file: %s\n", strerror (errno)));
return -1;
}
key = alloca(strlen(path)+12);
sprintf(key, "%s.index.data", path);
keys = camel_key_file_new(key, O_RDONLY, CAMEL_TEXT_INDEX_KEY_VERSION);
if (keys == NULL) {
- io(printf("Check failed: No key file: %s\n", strerror(errno)));
+ io(printf("Check failed: No key file: %s\n", strerror (errno)));
camel_object_unref((CamelObject *)blocks);
return -1;
}