Explorar o código

These are const but still needed.

The function ptr is required for processing but the function
isn't really needed otherwise.
Bryan Drewery %!s(int64=7) %!d(string=hai) anos
pai
achega
960236f362
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 2 1
      src/dcc.cc
  2. 3 1
      src/mod/transfer.mod/transfer.cc

+ 2 - 1
src/dcc.cc

@@ -1993,7 +1993,8 @@ struct dcc_table DCC_SOCKET = {
   NULL
 };
 
-void
+static void
+__attribute__((const))
 dcc_identwait(int idx, char *buf, int len)
 {
   /* Ignore anything now */

+ 3 - 1
src/mod/transfer.mod/transfer.cc

@@ -649,7 +649,9 @@ void kill_dcc_xfer(int idx, void *x)
   free(x);
 }
 
-void out_dcc_xfer(int idx, char *buf, void *x)
+static void
+__attribute__((const))
+out_dcc_xfer(int idx, char *buf, void *x)
 {
 }