hurdextras-commit
[Top][All Lists]
Advanced

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

cvsfs cvs_connect.c cvs_files.c


From: Stefan Siegl
Subject: cvsfs cvs_connect.c cvs_files.c
Date: Fri, 09 Jun 2006 20:33:08 +0000

CVSROOT:        /cvsroot/hurdextras
Module name:    cvsfs
Changes by:     Stefan Siegl <stesie>   06/06/09 20:33:08

Modified files:
        .              : cvs_connect.c cvs_files.c 

Log message:
        eliminated compiler warnings, based on patch by "Aanjhan R" 
<address@hidden>

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cvsfs/cvs_connect.c?cvsroot=hurdextras&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/cvsfs/cvs_files.c?cvsroot=hurdextras&r1=1.13&r2=1.14

Patches:
Index: cvs_connect.c
===================================================================
RCS file: /cvsroot/hurdextras/cvsfs/cvs_connect.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- cvs_connect.c       16 Nov 2005 21:18:08 -0000      1.18
+++ cvs_connect.c       9 Jun 2006 20:33:07 -0000       1.19
@@ -332,6 +332,7 @@
 static void 
 cvs_connect_sigalrm_handler(int signal) 
 {
+  (void) signal;
   static time_t cvs_tree_expiration = 0;
 
   /* update directory tree, by default every 1800 sec. */
@@ -367,6 +368,7 @@
 static void
 cvs_connect_sigusr1_handler(int sig) 
 {
+  (void) sig;
   cvs_tree_read(&rootdir);
 }
 
@@ -378,6 +380,7 @@
 static void
 cvs_connect_sigusr2_handler(int sig)
 {
+  (void) sig;
   spin_lock(&cvs_cached_conn_lock);
 
   if(cvs_cached_conn.send)

Index: cvs_files.c
===================================================================
RCS file: /cvsroot/hurdextras/cvsfs/cvs_files.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- cvs_files.c 16 Nov 2005 21:18:08 -0000      1.13
+++ cvs_files.c 9 Jun 2006 20:33:08 -0000       1.14
@@ -93,10 +93,10 @@
  */
 #ifdef HAVE_LIBZ
 static int
-cvs_files_gzip_check_header(char **data, int *len)
+cvs_files_gzip_check_header(char **data, uInt *len)
 {
   static const char gzip_magic[2] = {0x1f, 0x8b};
-  int pos = 10;
+  uInt pos = 10;
   int method;
   int flags;
 
@@ -173,7 +173,7 @@
   int got_header = 0;
   
   /* initialize zlib decompression */
-  z.next_in = input;
+  z.next_in = ((Bytef *)input);
   z.avail_in = 0;
   z.next_out = NULL;
   z.zalloc = Z_NULL;
@@ -276,7 +276,7 @@
 
       /* discard inflated bits from the input buffer ... */
       memmove(input, z.next_in, sizeof(input) - ((char *)z.next_in - input));
-      z.next_in = input;
+      z.next_in = ((Bytef *)input);
     }
 
   if(bytes)




reply via email to

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