diff src/server.c @ 74:c7df2cc65cc1 noffle

[svn] Introduce UNUSED(x) macro
author bears
date Sat, 13 May 2000 16:36:35 +0100
parents 21e778b6c3e9
children 1eb0cdd17c76
line wrap: on
line diff
--- a/src/server.c	Sat May 13 16:35:17 2000 +0100
+++ b/src/server.c	Sat May 13 16:36:35 2000 +0100
@@ -1,7 +1,7 @@
 /*
   server.c
 
-  $Id: server.c 75 2000-05-13 09:25:28Z enz $
+  $Id: server.c 80 2000-05-13 15:36:35Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -203,6 +203,9 @@
 static Bool
 notImplemented( char *arg, const Cmd *cmd )
 {
+    UNUSED( arg );
+    UNUSED( cmd );
+    
     putStat( STAT_NO_PERMISSION, "Command not implemented" );
     return TRUE;
 }
@@ -478,6 +481,8 @@
 {
     const char *msgId;
     int numb;
+
+    UNUSED( cmd );
     
     if ( ! whichId( &msgId, &numb, arg ) )
         return TRUE;
@@ -502,6 +507,8 @@
 {
     const char *msgId;
     int numb;
+
+    UNUSED( cmd );
     
     if ( ! whichId( &msgId, &numb, arg ) )
         return TRUE;
@@ -528,6 +535,8 @@
     const char *msgId;
     int numb;
     
+    UNUSED( cmd );
+    
     if ( ! whichId( &msgId, &numb, arg ) )
         return TRUE;
     putStat( STAT_ART_FOLLOWS, "%ld %s Article", numb, msgId );
@@ -549,6 +558,9 @@
 {
     unsigned int i;
 
+    UNUSED( arg );
+    UNUSED( cmd );
+
     putStat( STAT_HELP_FOLLOWS, "Help" );
     putTxtBuf( "\nCommands:\n\n" );
     for ( i = 0; i < sizeof( commands ) / sizeof( commands[ 0 ] ); ++i )
@@ -560,6 +572,9 @@
 static Bool
 doIhave( char *arg, const Cmd *cmd )
 {
+    UNUSED( arg );
+    UNUSED( cmd );
+    
     putStat( STAT_ART_REJECTED, "Command not used" );
     return TRUE;
 }
@@ -569,6 +584,9 @@
 {
     int n;
 
+    UNUSED( arg );
+    UNUSED( cmd );
+
     if ( testGrpSelected() )
     {
         n = server.artPtr;
@@ -765,6 +783,8 @@
     const Over *ov;
     int first, last, i;
 
+    UNUSED( cmd );
+
     if ( ! Grp_exists( arg ) )
         putStat( STAT_NO_SUCH_GRP, "No such group" );
     else
@@ -784,6 +804,9 @@
 static Bool
 doMode( char *arg, const Cmd *cmd )
 {
+    UNUSED( arg );
+    UNUSED( cmd );
+    
     putStat( STAT_READY_POST_ALLOW, "Ok" );
     return TRUE;
 }
@@ -896,6 +919,9 @@
 {
     int n;
 
+    UNUSED(arg);
+    UNUSED(cmd);
+
     if ( testGrpSelected() )
     {
         n = server.artPtr;
@@ -1045,6 +1071,9 @@
     const char* p;
     ItemList * newsgroups, *control;
 
+    UNUSED(arg);
+    UNUSED(cmd);
+    
     /*
       Get article and make following changes to the header:
       - add/replace/cut Message-ID depending on config options
@@ -1445,6 +1474,9 @@
 static Bool
 doSlave( char *arg, const Cmd *cmd )
 {
+    UNUSED( arg );
+    UNUSED( cmd );
+    
     putStat( STAT_CMD_OK, "Ok" );
     return TRUE;
 }
@@ -1454,6 +1486,8 @@
 {
     const char *msgId;
     int numb;
+
+    UNUSED( cmd );
     
     if ( ! whichId( &msgId, &numb, arg ) )
         return TRUE;
@@ -1468,6 +1502,9 @@
 static Bool
 doQuit( char *arg, const Cmd *cmd )
 {
+    UNUSED( arg );
+    UNUSED( cmd );
+    
     putStat( STAT_GOODBYE, "Goodbye" );
     return FALSE;
 }
@@ -1478,6 +1515,8 @@
     int first, last, i, n;
     const Over *ov;
 
+    UNUSED( cmd );
+    
     if ( ! testGrpSelected() )
         return TRUE;
     parseRange( arg, &first, &last, &n );