summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugins-interface.c12
-rw-r--r--src/plugins/weechat-plugin.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c
index 28343746e..ccf6ea9b5 100644
--- a/src/plugins/plugins-interface.c
+++ b/src/plugins/plugins-interface.c
@@ -103,11 +103,11 @@ weechat_free_exploded_string (t_weechat_plugin *plugin, char **exploded_string)
}
/*
- * weechat_plugin_mkdir_home: create a directory for script in WeeChat home
+ * weechat_plugin_mkdir_home: create a directory in WeeChat home
*/
int
-weechat_plugin_mkdir_home (t_weechat_plugin *plugin, char *path)
+weechat_plugin_mkdir_home (t_weechat_plugin *plugin, char *directory)
{
char *dir_name;
int dir_length;
@@ -115,17 +115,17 @@ weechat_plugin_mkdir_home (t_weechat_plugin *plugin, char *path)
/* make gcc happy */
(void) plugin;
- if (!path)
+ if (!directory)
return 0;
/* build directory, adding WeeChat home */
- dir_length = strlen (weechat_home) + strlen (path) + 2;
+ dir_length = strlen (weechat_home) + strlen (directory) + 2;
dir_name =
(char *) malloc (dir_length * sizeof (char));
if (!dir_name)
return 0;
- snprintf (dir_name, dir_length, "%s/%s", weechat_home, path);
+ snprintf (dir_name, dir_length, "%s/%s", weechat_home, directory);
if (mkdir (dir_name, 0755) < 0)
{
@@ -1102,7 +1102,7 @@ weechat_plugin_input_color (t_weechat_plugin *plugin, int color, int start, int
}
/*
- * weechat_plugin_get_irc_color: get number of IRC color name
+ * weechat_plugin_get_irc_color: get number of IRC color with name
*/
int
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index 1f550fc87..582bbeea6 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -148,8 +148,8 @@ struct t_plugin_window_info
{
int win_x, win_y; /* position of window */
int win_width, win_height; /* window geometry */
- int win_width_pct; /* % of width (compared to term size) */
- int win_height_pct; /* % of height (compared to term size) */
+ int win_width_pct; /* % of width (compared to parent win) */
+ int win_height_pct; /* % of height (compared to parent win) */
int num_buffer; /* # of displayed buffer */
t_plugin_window_info *prev_window; /* link to previous window */
t_plugin_window_info *next_window; /* link to next window */