diff src/database.c @ 271:3477050e8d10 noffle

[svn] * src/client.c,src/fetch.c,src/lock.c.src/protocol.c,src/util.h,src/util.c: Define our own SignalHandler type rather than use the rather Linux-specific (and potentially glibc version specific) sig_t. * 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 11:32:17 +0000
parents 087e7039b569
children 0880d6edaaa5
line wrap: on
line diff
--- a/src/database.c	Sun Nov 10 11:30:40 2002 +0000
+++ b/src/database.c	Sun Nov 10 11:32:17 2002 +0000
@@ -1,7 +1,7 @@
 /*
   database.c
 
-  $Id: database.c 389 2002-06-26 13:28:35Z bears $
+  $Id: database.c 403 2002-11-10 11:32:17Z 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
@@ -44,7 +44,7 @@
     Str msgId;
 
     /* Status of loaded article */
-    int status; /* Flags */
+    unsigned status; /* Flags */
     time_t lastAccess;
 
     /* Overview of loaded article */
@@ -317,7 +317,7 @@
 }
 
 void
-Db_setStatus( const char *msgId, int status )
+Db_setStatus( const char *msgId, unsigned status )
 {
     if ( loadArt( msgId ) )
     {
@@ -418,7 +418,7 @@
     static DynStr *s = NULL;
 
     Str date, t;
-    int status;
+    unsigned status;
     const char *p;
 
     if ( s == NULL )
@@ -473,7 +473,7 @@
     return ( p + 2 );
 }
 
-int
+unsigned
 Db_status( const char *msgId )
 {
     if ( ! loadArt( msgId ) )