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

« back to all changes in this revision

Viewing changes to src/robx.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: robx.c 5967 2005-05-19 12:14:39Z m-a $ */
 
1
/* $Id: robx.c 6766 2009-01-12 04:27:36Z relson $ */
2
2
 
3
3
/*****************************************************************************
4
4
 
51
51
                "  sp: %3lu,  gd: %3lu,  p: %9.6f,  t: %.*s\n", 
52
52
                (unsigned long)rh->count, rh->sum, rh->sum / rh->count,
53
53
                (unsigned long)spamness, (unsigned long)goodness, prob,
54
 
                CLAMP_INT_MAX(key->leng), key->text);
 
54
                CLAMP_INT_MAX(key->leng), key->u.text);
55
55
    }
56
56
}
57
57
 
61
61
    struct robhook_data *rh = userdata;
62
62
 
63
63
    /* ignore system meta-data */
64
 
    if (*key->text != '.')
 
64
    if (*key->u.text != '.')
65
65
        robx_accum(rh, key, data);
66
66
 
67
67
    return 0;