changeset 497:6f99218719e4 noffle

Fix some modern GCC compiler warnings.
author Jim Hague <jim.hague@acm.org>
date Tue, 13 Aug 2013 22:34:23 +0100
parents a5a37849dc04
children d09bcf917ac9
files src/client.c src/request.c src/request.h
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/client.c	Tue Jul 10 18:25:21 2007 +0100
+++ b/src/client.c	Tue Aug 13 22:34:23 2013 +0100
@@ -1180,7 +1180,7 @@
 Client_changeToGrp( const char* name )
 {
     unsigned int stat;
-    int estimatedNumb, first, last, res;
+    int estimatedNumb, first, last;
 
     ASSERT( Lock_gotLock() );
     if ( ! Grp_exists( name ) )
@@ -1188,7 +1188,7 @@
     Lock_closeDatabases();
     stat = STAT_OK;
     if ( ! putCmd( "GROUP %s", name ) )
-	res = STAT_CONNECTION_LOST;
+	stat = STAT_CONNECTION_LOST;
     if ( stat == STAT_OK )
 	stat = getStat();
     if ( ! Lock_openDatabases() )
--- a/src/request.c	Tue Jul 10 18:25:21 2007 +0100
+++ b/src/request.c	Tue Aug 13 22:34:23 2013 +0100
@@ -447,7 +447,7 @@
 
 /* Do not occupy the request files any longer. Write any changes to disk.
    Return TRUE on success, FALSE if an IO error occurs. */
-void
+Bool
 Req_close(void) 
 {
     Bool ret = TRUE;
@@ -466,4 +466,5 @@
     }
 
     is_open = FALSE;
+    return ret;
 }
--- a/src/request.h	Tue Jul 10 18:25:21 2007 +0100
+++ b/src/request.h	Tue Aug 13 22:34:23 2013 +0100
@@ -49,7 +49,7 @@
 Req_open(void);
 
 /* Write changes to disk */
-void
+Bool
 Req_close(void);
 
 #endif