summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-command.c9
-rw-r--r--src/plugins/irc/irc-protocol.c2
-rw-r--r--src/plugins/logger/logger.c2
-rw-r--r--src/plugins/relay/relay-server.c2
4 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index be71e7033..301276e79 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -866,7 +866,7 @@ int
irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
char **argv, char **argv_eol)
{
- char *pos, *irc_cmd, str_time[512];
+ char *irc_cmd, str_time[512];
struct timeval tv;
IRC_BUFFER_GET_SERVER(buffer);
@@ -881,12 +881,7 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
if (!irc_cmd)
return WEECHAT_RC_ERROR;
- pos = irc_cmd;
- while (pos[0])
- {
- pos[0] = toupper (pos[0]);
- pos++;
- }
+ weechat_string_toupper (irc_cmd);
if ((weechat_strcasecmp (argv[2], "ping") == 0) && !argv_eol[3])
{
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index b21a10a25..61dc789fb 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -61,7 +61,7 @@ irc_protocol_is_numeric_command (const char *str)
{
while (str && str[0])
{
- if (!isdigit (str[0]))
+ if (!isdigit ((unsigned char)str[0]))
return 0;
str++;
}
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c
index c39fc7073..f722114bb 100644
--- a/src/plugins/logger/logger.c
+++ b/src/plugins/logger/logger.c
@@ -1148,7 +1148,7 @@ logger_line_log_level (int tags_count, const char **tags)
/* log level for line? return it */
if (strncmp (tags[i], "log", 3) == 0)
{
- if (isdigit (tags[i][3]))
+ if (isdigit ((unsigned char)tags[i][3]))
{
return (tags[i][3] - '0');
}
diff --git a/src/plugins/relay/relay-server.c b/src/plugins/relay/relay-server.c
index 2a25b6a2f..b1a39138d 100644
--- a/src/plugins/relay/relay-server.c
+++ b/src/plugins/relay/relay-server.c
@@ -164,7 +164,7 @@ relay_server_sock_cb (void *data, int fd)
{
struct t_relay_server *server;
struct sockaddr_in client_addr;
- unsigned int client_length;
+ socklen_t client_length;
int client_fd;
char ipv4_address[INET_ADDRSTRLEN + 1], *ptr_address;