changeset 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 1fdde6512033
files src/database.c src/over.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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;
 };