mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Enabled lots of GCC warnings, fixed those that were easy to fix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@456 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f8aa81b73c
commit
dcc2e89b2e
25 changed files with 84 additions and 106 deletions
|
|
@ -18,7 +18,10 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE /* for crypt() */
|
||||
#endif
|
||||
|
||||
#include "module.h"
|
||||
#include "signals.h"
|
||||
#include "misc.h"
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ void botnet_users_init(void);
|
|||
|
||||
GSList *botnets;
|
||||
|
||||
void bot_send_cmd(BOT_REC *bot, char *data)
|
||||
void bot_send_cmd(BOT_REC *bot, const char *data)
|
||||
{
|
||||
g_return_if_fail(bot != NULL);
|
||||
g_return_if_fail(data != NULL);
|
||||
|
|
@ -46,7 +46,7 @@ void bot_send_cmd(BOT_REC *bot, char *data)
|
|||
net_transmit(bot->handle, "\n", 1);
|
||||
}
|
||||
|
||||
void bot_send_cmdv(BOT_REC *bot, char *format, ...)
|
||||
void bot_send_cmdv(BOT_REC *bot, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
char *str;
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ struct _botnet_rec {
|
|||
|
||||
extern GSList *botnets;
|
||||
|
||||
void bot_send_cmd(BOT_REC *bot, char *data);
|
||||
void bot_send_cmdv(BOT_REC *bot, char *format, ...);
|
||||
void bot_send_cmd(BOT_REC *bot, const char *data);
|
||||
void bot_send_cmdv(BOT_REC *bot, const char *format, ...);
|
||||
|
||||
/* broadcast a message to everyone in bot network, except for `except_bot'
|
||||
if it's not NULL. If botnet is NULL, the message is sent to all botnets. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue