mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures
This commit is contained in:
@@ -37,7 +37,7 @@ t_weechat_trigger *weechat_trigger_alloc (char *pattern, char *domain, char *com
|
||||
{
|
||||
t_weechat_trigger *new;
|
||||
|
||||
new = (t_weechat_trigger *) malloc (sizeof (t_weechat_trigger));
|
||||
new = (t_weechat_trigger *)malloc (sizeof (t_weechat_trigger));
|
||||
if (new)
|
||||
{
|
||||
new->pattern = strdup (pattern);
|
||||
@@ -725,7 +725,7 @@ weechat_trigger_edit (t_weechat_plugin *plugin, int todo)
|
||||
return -1;
|
||||
|
||||
len = strlen (weechat_dir) + strlen(DIR_SEP) + strlen(CONF_FILE) + 1;
|
||||
triggerrc = (char *) malloc (len * sizeof(char));
|
||||
triggerrc = (char *)malloc (len * sizeof(char));
|
||||
if (!triggerrc)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user