comparison src/database.c @ 276:16dad3488e9d noffle

[svn] * src/client.c,src/database.h,src/database.c,src/over.h,src/over.c, src/pseudo.c,src/server.c: Ensure format string specifiers and passed data types match. As part of this, change some uses of size_t as a general data type to an appropriate base C type. Database status changes from int to unsigned.
author bears
date Sun, 10 Nov 2002 18:31:25 +0000
parents 0880d6edaaa5
children 5eece4dfd945
comparison
equal deleted inserted replaced
275:0880d6edaaa5 276:16dad3488e9d
1 /* 1 /*
2 database.c 2 database.c
3 3
4 $Id: database.c 407 2002-11-10 15:34:59Z bears $ 4 $Id: database.c 408 2002-11-10 18:31:25Z bears $
5 5
6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was 6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was
7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs 7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs
8 (e.g. it is not recommended to delete or overwrite entries with 8 (e.g. it is not recommended to delete or overwrite entries with
9 overflow pages). 9 overflow pages).
51 Str subj; 51 Str subj;
52 Str from; 52 Str from;
53 Str date; 53 Str date;
54 Str ref; 54 Str ref;
55 Str xref; 55 Str xref;
56 size_t bytes; 56 unsigned long bytes;
57 size_t lines; 57 unsigned long lines;
58 58
59 /* Article text (except for overview header lines) */ 59 /* Article text (except for overview header lines) */
60 DynStr *txt; 60 DynStr *txt;
61 61
62 } db = { NULL, "(unknown)", "", 0, 0, "", "", "", "", "", 0, 0, NULL }; 62 } db = { NULL, "(unknown)", "", 0, 0, "", "", "", "", "", 0, 0, NULL };