diff options
| author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-08-30 02:52:30 +0000 |
|---|---|---|
| committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-08-30 02:52:30 +0000 |
| commit | 1d858ab2a9bf197feebeaf3cf3a795896856d5f9 (patch) | |
| tree | c0880312b20d7a1788ee69c4006a5658ea7929ef /textproc/senna/files/patch-store.c | |
| parent | - Update to 0.12 (diff) | |
Update snapshot to 20060829.
Diffstat (limited to 'textproc/senna/files/patch-store.c')
| -rw-r--r-- | textproc/senna/files/patch-store.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/senna/files/patch-store.c b/textproc/senna/files/patch-store.c new file mode 100644 index 000000000000..05e8285dbe67 --- /dev/null +++ b/textproc/senna/files/patch-store.c @@ -0,0 +1,24 @@ +--- lib/store.c.orig Tue Aug 29 03:00:23 2006 ++++ lib/store.c Tue Aug 29 16:42:28 2006 +@@ -18,6 +18,7 @@ + #include "str.h" + #include "inv.h" + #include "store.h" ++#include <stddef.h> + #include <string.h> + + static int len_sum = 0; +@@ -60,10 +61,12 @@ + sen_store_buf_add(sen_store_buf *b, sen_id tid) + { + uint8_t dummybuf[8], *dummyp; ++ ptrdiff_t pd; + if (b->tvp < b->tve) { *b->tvp++ = tid; } + dummyp = dummybuf; + SEN_B_ENC(tid, dummyp); +- simple_sum += dummyp - dummybuf; ++ pd = dummyp - dummybuf; ++ simple_sum += (int)pd; + return sen_success; + } + |
