Browse Source

These are const but still needed.

The function ptr is required for processing but the function
isn't really needed otherwise.
Bryan Drewery 7 năm trước cách đây
mục cha
commit
960236f362
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  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)
 {
 }