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:
+2
-2
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user