Selaa lähdekoodia

dcc.u.other is a void*

Bryan Drewery 5 kuukautta sitten
vanhempi
commit
67f7d83ccb
2 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 0 1
      src/botnet.cc
  2. 2 2
      src/dccutil.cc

+ 0 - 1
src/botnet.cc

@@ -1255,7 +1255,6 @@ void tandem_relay(int idx, char *nick, int i)
   }
 
   i = new_dcc(&DCC_DNSWAIT, sizeof(struct dns_info));
-
   if (i < 0) {
     dprintf(idx, "%s\n", "Sorry, too many DCC connections.");
     return;

+ 2 - 2
src/dccutil.cc

@@ -767,7 +767,7 @@ new_dcc(struct dcc_table *type, int xtra_size)
 
   dcc[i].type = type;
   if (xtra_size)
-    dcc[i].u.other = (char *) calloc(1, xtra_size);
+    dcc[i].u.other = calloc(1, xtra_size);
   else
     dcc[i].u.other = NULL;
   dcc[i].simul = -1;
@@ -791,7 +791,7 @@ changeover_dcc(int i, struct dcc_table *type, int xtra_size)
   }
   dcc[i].type = type;
   if (xtra_size)
-    dcc[i].u.other = (char *) calloc(1, xtra_size);
+    dcc[i].u.other = calloc(1, xtra_size);
 }
 
 int