1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/irc/ircd-rusnet/files/patch-ircd-s_id.c
Max Khon 0e323fc402 Fix gcc 4.2 build.
Approved by:	portmgr (pav)
2007-11-14 04:56:31 +00:00

21 lines
550 B
C

--- ircd/s_id.c.orig 2007-11-14 03:08:39.000000000 +0600
+++ ircd/s_id.c 2007-11-14 03:08:52.000000000 +0600
@@ -140,7 +140,7 @@
if (chptr->history == 0 ||
(timeofday - chptr->history) >LDELAYCHASETIMELIMIT+DELAYCHASETIMELIMIT)
{
- MyFree((char *)chptr);
+ MyFree(chptr);
return;
}
@@ -182,7 +182,7 @@
*chptr = del->nextch;
istat.is_cchan--;
istat.is_cchanmem -= sizeof(aChannel) +strlen(del->chname);
- MyFree((char *)del);
+ MyFree(del);
}
else
chptr = &((*chptr)->nextch);