diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-15 22:35:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-15 22:35:12 +0100 |
commit | 8724fc18afa1d2702eeed9aa6e7d825d25cbda98 (patch) | |
tree | 735f8d09799db47ff387129bb8613e940bb4fbf7 /src/plugins/irc/irc-protocol.c | |
parent | e1d639d7ebbea6cf1c28e6d3cba284f5a3562dac (diff) | |
download | weechat-8724fc18afa1d2702eeed9aa6e7d825d25cbda98.zip |
Use of const for some functions returning "char *"
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 6c6c3ed17..ac152869d 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1119,7 +1119,8 @@ irc_protocol_reply_version (struct t_irc_server *server, struct t_irc_channel *channel, const char *nick, const char *message, const char *str_version) { - char *pos, *version, *date; + char *pos; + const char *version, *date; struct t_gui_buffer *ptr_buffer; ptr_buffer = (channel) ? channel->buffer : server->buffer; @@ -3654,7 +3655,8 @@ int irc_protocol_cmd_353 (struct t_irc_server *server, const char *command, int argc, char **argv, char **argv_eol) { - char *pos_channel, *pos_nick, *color; + char *pos_channel, *pos_nick; + const char *color; int args, i, prefix_found; int is_chanowner, is_chanadmin, is_chanadmin2, is_op, is_halfop; int has_voice, is_chanuser; @@ -3785,7 +3787,8 @@ irc_protocol_cmd_366 (struct t_irc_server *server, const char *command, struct t_infolist *infolist; struct t_config_option *ptr_option; int num_nicks, num_op, num_halfop, num_voice, num_normal, length, i; - char *string, *prefix; + char *string; + const char *prefix; /* 366 message looks like: :server 366 mynick #channel :End of /NAMES list. |