1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 05:06:39 +02:00

Partial fixes for g++, need to commit this

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1175 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-09-30 18:45:08 +00:00
parent 115136b09e
commit 12ef623e94
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -778,7 +778,7 @@ E int do_mysql;
E int is44;
E int quitting;
E int delayed_quit;
E char *quitmsg;
E const char *quitmsg;
E char inbuf[BUFSIZE];
E int servsock;
E int save_data;
@@ -1269,7 +1269,7 @@ E void anope_cmd_server(char *servname, int hop, char *descript); /* S
E void anope_cmd_sgline(char *mask, char *reason); /* SGLINE */
E void anope_cmd_sqline(char *mask, char *reason); /* SQLINE */
E void anope_cmd_szline(char *mask, char *reason, char *whom); /* SZLINE */
E void anope_cmd_squit(char *servname, char *message); /* SQUIT */
E void anope_cmd_squit(const char *servname, const char *message); /* SQUIT */
E void anope_cmd_svinfo(); /* SVINFO */
E void anope_cmd_svsadmin(char *server, int set); /* SVSADMIN */
E void anope_cmd_svshold(char *nick); /* SVSHOLD */
+2 -2
View File
@@ -88,7 +88,7 @@ static void load_lang(int index, const char *filename)
alog("Warning: Bad number of strings (%d, wanted %d) "
"for language %d (%s)", num, NUM_STRINGS, index, filename);
}
langtexts[index] = scalloc(sizeof(char *), NUM_STRINGS);
langtexts[index] = (char **)scalloc(sizeof(char *), NUM_STRINGS);
if (num > NUM_STRINGS)
num = NUM_STRINGS;
for (i = 0; i < num; i++) {
@@ -128,7 +128,7 @@ static void load_lang(int index, const char *filename)
langtexts[index] = NULL;
return;
} else {
langtexts[index][i] = scalloc(len + 1, 1);
langtexts[index][i] = (char *)scalloc(len + 1, 1);
fseek(f, pos, SEEK_SET);
if (fread(langtexts[index][i], 1, len, f) != len) {
alog("Failed to read string %d in language %d (%s)",
+3 -3
View File
@@ -44,7 +44,7 @@ MailInfo *MailRegBegin(User * u, NickRequest * nr, char *subject,
} else {
MailInfo *mail;
mail = scalloc(sizeof(MailInfo), 1);
mail = (MailInfo *)scalloc(sizeof(MailInfo), 1);
mail->sender = u;
mail->recipient = NULL;
mail->recip = nr;
@@ -97,7 +97,7 @@ MailInfo *MailBegin(User * u, NickCore * nc, char *subject, char *service)
} else {
MailInfo *mail;
mail = scalloc(sizeof(MailInfo), 1);
mail = (MailInfo *)scalloc(sizeof(MailInfo), 1);
mail->sender = u;
mail->recipient = nc;
mail->recip = NULL;
@@ -142,7 +142,7 @@ MailInfo *MailMemoBegin(NickCore * nc)
} else {
MailInfo *mail;
mail = scalloc(sizeof(MailInfo), 1);
mail = (MailInfo *)scalloc(sizeof(MailInfo), 1);
mail->sender = NULL;
mail->recipient = nc;
mail->recip = NULL;
+1 -1
View File
@@ -61,7 +61,7 @@ int quitting = 0;
int delayed_quit = 0;
/* Contains a message as to why services is terminating */
char *quitmsg = NULL;
const char *quitmsg = NULL;
/* Input buffer - global, so we can dump it if something goes wrong */
char inbuf[BUFSIZE];