irc: fix type of value returned by function irc_buffer_build_name

This commit is contained in:
Sébastien Helleu 2015-07-04 16:36:42 +02:00
parent 0c79b2fda8
commit df66b2e6fe
5 changed files with 9 additions and 8 deletions

View File

@ -87,7 +87,7 @@ irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
* Builds buffer name with a server and a channel.
*/
char *
const char *
irc_buffer_build_name (const char *server, const char *channel)
{
static char buffer[128];

View File

@ -51,7 +51,8 @@ struct t_irc_channel;
extern void irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
struct t_irc_server **server,
struct t_irc_channel **channel);
extern char *irc_buffer_build_name (const char *server, const char *channel);
extern const char *irc_buffer_build_name (const char *server,
const char *channel);
extern int irc_buffer_close_cb (void *data, struct t_gui_buffer *buffer);
extern int irc_buffer_nickcmp_cb (void *data,
struct t_gui_buffer *buffer,

View File

@ -236,8 +236,8 @@ irc_channel_create_buffer (struct t_irc_server *server,
struct t_gui_buffer *ptr_buffer, *ptr_buffer_for_merge;
int buffer_created, current_buffer_number, buffer_position;
int manual_join, noswitch;
char *buffer_name, str_number[32], *channel_name_lower;
const char *short_name, *localvar_channel;
char str_number[32], *channel_name_lower;
const char *buffer_name, *short_name, *localvar_channel;
buffer_created = 0;

View File

@ -1100,7 +1100,8 @@ IRC_PROTOCOL_CALLBACK(nick)
{
struct t_irc_channel *ptr_channel;
struct t_irc_nick *ptr_nick, *ptr_nick_found;
char *new_nick, *old_color, *buffer_name, str_tags[512];
char *new_nick, *old_color, str_tags[512];
const char *buffer_name;
int local_nick, smart_filter;
struct t_irc_channel_speaking *ptr_nick_speaking;

View File

@ -1644,9 +1644,8 @@ int
irc_server_rename (struct t_irc_server *server, const char *new_name)
{
int length;
char *mask, *pos_option, *new_option_name, *buffer_name;
char charset_modifier[256];
const char *option_name;
char *mask, *pos_option, *new_option_name, charset_modifier[256];
const char *buffer_name, *option_name;
struct t_infolist *infolist;
struct t_config_option *ptr_option;
struct t_irc_channel *ptr_channel;