1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 12:43:12 +02:00

More code cleanups to get rid of useless casts and other useless

structures such as:
-       lp->value.cp = (char *)MyMalloc(strlen(mask) + 1);
-       (void)strcpy(lp->value.cp, mask);
+       lp->value.cp = strdup(mask);
This commit is contained in:
Bram Matthys
2018-04-22 14:28:22 +02:00
parent 680715b1b5
commit d5d446c38d
25 changed files with 86 additions and 108 deletions
+2 -2
View File
@@ -240,9 +240,9 @@ int parse(aClient *cptr, char *buffer, char *bufend)
*/
if (*sender && IsServer(cptr))
{
from = find_client(sender, (aClient *)NULL);
from = find_client(sender, NULL);
if (!from && index(sender, '@'))
from = find_nickserv(sender, (aClient *)NULL);
from = find_nickserv(sender, NULL);
//para[0] = sender;
para[0] = (char *)0xDEADBEEF; /* helps us catch bugs :) -- 2/2 */