summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-08-19 00:46:13 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-08-19 00:46:13 +0000
commitffd9a850c2725bd1ec9daebbded979e0fc8f1253 (patch)
treef289484129629df9cf83d2f82636ffaabea6a139
parent3e53c517d05f6e384576e31657b8f3d7c26a4fd6 (diff)
downloadweechat-ffd9a850c2725bd1ec9daebbded979e0fc8f1253.zip
Fixed typos
-rw-r--r--src/plugins/plugins-interface.c12
-rw-r--r--src/plugins/weechat-plugin.h4
-rw-r--r--weechat/src/plugins/plugins-interface.c12
-rw-r--r--weechat/src/plugins/weechat-plugin.h4
4 files changed, 16 insertions, 16 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 */
diff --git a/weechat/src/plugins/plugins-interface.c b/weechat/src/plugins/plugins-interface.c
index 28343746e..ccf6ea9b5 100644
--- a/weechat/src/plugins/plugins-interface.c
+++ b/weechat/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/weechat/src/plugins/weechat-plugin.h b/weechat/src/plugins/weechat-plugin.h
index 1f550fc87..582bbeea6 100644
--- a/weechat/src/plugins/weechat-plugin.h
+++ b/weechat/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 */