# HG changeset patch # User bears # Date 1036953085 0 # Node ID 16dad3488e9d03a729c3cadaaf06dfeed1ae248b # Parent 0880d6edaaa51a21af7d18eee96db79073161714 [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. diff -r 0880d6edaaa5 -r 16dad3488e9d src/database.c --- a/src/database.c Sun Nov 10 15:34:59 2002 +0000 +++ b/src/database.c Sun Nov 10 18:31:25 2002 +0000 @@ -1,7 +1,7 @@ /* database.c - $Id: database.c 407 2002-11-10 15:34:59Z bears $ + $Id: database.c 408 2002-11-10 18:31:25Z bears $ Uses GNU gdbm library. Using Berkeley db (included in libc6) was cumbersome. It is based on Berkeley db 1.85, which has severe bugs @@ -53,8 +53,8 @@ Str date; Str ref; Str xref; - size_t bytes; - size_t lines; + unsigned long bytes; + unsigned long lines; /* Article text (except for overview header lines) */ DynStr *txt; diff -r 0880d6edaaa5 -r 16dad3488e9d src/over.c --- a/src/over.c Sun Nov 10 15:34:59 2002 +0000 +++ b/src/over.c Sun Nov 10 18:31:25 2002 +0000 @@ -1,7 +1,7 @@ /* over.c - $Id: over.c 407 2002-11-10 15:34:59Z bears $ + $Id: over.c 408 2002-11-10 18:31:25Z bears $ */ #if HAVE_CONFIG_H @@ -39,8 +39,8 @@ char *date; char *msgId; char *ref; - size_t bytes; - size_t lines; + unsigned long bytes; + unsigned long lines; time_t time; };