~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-security

« back to all changes in this revision

Viewing changes to src/register.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: register.c 6585 2006-11-24 08:03:34Z m-a $ */
 
1
/* $Id: register.c 6797 2009-02-14 21:13:00Z relson $ */
2
2
 
3
3
/* register.c -- read input with collect and register to persistent db */
4
4
 
57
57
    if (wordcount == 0)
58
58
        msgcount = 0;
59
59
 
60
 
    format_log_update(msg_register, msg_register_size, u, r, wordcount, msgcount);
 
60
    format_set_counts(wordcount, msgcount);
 
61
    format_log_update(msg_register, msg_register_size, u, r);
61
62
 
62
63
    if (verbose)
63
64
        (void)fprintf(dbgout, "# %u word%s, %u message%s\n", 
86
87
 
87
88
    for (node = wordhash_first(h); node != NULL; node = wordhash_next(h))
88
89
    {
89
 
        wordprop = node->buf;
 
90
        wordprop = node->data;
90
91
        switch (ds_read(list->dsh, node->key, &val)) {
91
92
            case DS_ABORT_RETRY:
92
93
                rand_sleep(4*1000,1000*1000);