commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/src geas-server.c objectcache/objectc...


From: Daniel E. Baumann
Subject: gnue/geas/src geas-server.c objectcache/objectc...
Date: Fri, 08 Jun 2001 23:25:26 -0700

CVSROOT:        /cvs
Module name:    gnue
Changes by:     Daniel E. Baumann <address@hidden>      01/06/08 23:25:26

Modified files:
        geas/src       : geas-server.c 
        geas/src/objectcache: objectcache.c objectcache.h 

Log message:
        Fix errors so it will still compile.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/geas-server.c.diff?cvsroot=OldCVS&tr1=1.97&tr2=1.98&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/objectcache/objectcache.c.diff?cvsroot=OldCVS&tr1=1.49&tr2=1.50&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/objectcache/objectcache.h.diff?cvsroot=OldCVS&tr1=1.15&tr2=1.16&r1=text&r2=text

Patches:
Index: gnue/geas/src/geas-server.c
diff -u gnue/geas/src/geas-server.c:1.97 gnue/geas/src/geas-server.c:1.98
--- gnue/geas/src/geas-server.c:1.97    Thu Jun  7 16:37:05 2001
+++ gnue/geas/src/geas-server.c Fri Jun  8 23:25:26 2001
@@ -19,7 +19,7 @@
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
   
-  $Id: geas-server.c,v 1.97 2001/06/07 23:37:05 ntiffin Exp $
+  $Id: geas-server.c,v 1.98 2001/06/09 06:25:26 baumannd Exp $
  
 */
 
@@ -514,7 +514,7 @@
  */
 void
 debug_output_f (char *type, int minlevel, char *file, char *func,
-                unsigned int line, char *msg, ...)
+                unsigned int line, const char *msg, ...)
 {
   FILE *debug_out_fp = NULL;
   va_list a;
Index: gnue/geas/src/objectcache/objectcache.c
diff -u gnue/geas/src/objectcache/objectcache.c:1.49 
gnue/geas/src/objectcache/objectcache.c:1.50
--- gnue/geas/src/objectcache/objectcache.c:1.49        Fri Jun  8 22:58:40 2001
+++ gnue/geas/src/objectcache/objectcache.c     Fri Jun  8 23:25:26 2001
@@ -19,7 +19,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
    
-   $Id: objectcache.c,v 1.49 2001/06/09 05:58:40 baumannd Exp $
+   $Id: objectcache.c,v 1.50 2001/06/09 06:25:26 baumannd Exp $
 */
 
 #include "config.h"
@@ -53,11 +53,11 @@
 
 static GHashTable *cachedata = NULL;
 static GHashTable *indexes = NULL;
-static int objectcache_count = 0;
+static unsigned int objectcache_count = 0;
 static guint32 cache_max_size = 0;
 static GList *flushable = NULL;
 
-static void oc_squeeze_cache (int spaces_to_make);
+static void oc_squeeze_cache (unsigned int spaces_to_make);
 static void oc_free_object_data (_ObjectData * o);
 static _ObjectData *oc_allocate_object_data (const char *classname,
                                              const char *key);
@@ -87,7 +87,7 @@
 }
 
 void
-oc_shrink_cache (int new_max_length)
+oc_shrink_cache (unsigned int new_max_length)
 {
   trace_functioncall ();
 
@@ -112,7 +112,7 @@
 }
 
 void
-oc_extend_cache (int new_max_length)
+oc_extend_cache (unsigned int new_max_length)
 {
   trace_functioncall ();
 
@@ -135,7 +135,7 @@
  * are deleted
  */
 static void
-oc_squeeze_cache (int spaces_to_make)
+oc_squeeze_cache (unsigned int spaces_to_make)
 {
   _ObjectData *obj;
   GList *last;
@@ -1120,7 +1120,7 @@
   /* GString *hash; */
   GList *l;
   /* gboolean needcomma = TRUE; */
-  char *key;
+  char *key = NULL;
 
   trace_functioncall ();
 //   return( NULL ); /* XYZ */
Index: gnue/geas/src/objectcache/objectcache.h
diff -u gnue/geas/src/objectcache/objectcache.h:1.15 
gnue/geas/src/objectcache/objectcache.h:1.16
--- gnue/geas/src/objectcache/objectcache.h:1.15        Thu Jun  7 08:29:51 2001
+++ gnue/geas/src/objectcache/objectcache.h     Fri Jun  8 23:25:26 2001
@@ -44,8 +44,8 @@
 void create_object_cache(guint32 max_lenght);
 void free_object_cache(void);
 
-void oc_shrink_cache( int new_max_length );
-void oc_extend_cache( int new_max_length );
+void oc_shrink_cache( unsigned int new_max_length );
+void oc_extend_cache( unsigned int new_max_length );
 
 /* Searching */
 ObjectData *oc_find_object_by_key( const char *classname, const char *key );



reply via email to

[Prev in Thread] Current Thread [Next in Thread]