summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/language.c4
-rw-r--r--src/mail.c6
-rw-r--r--src/main.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/language.c b/src/language.c
index 1c29b1ec9..d521cf188 100644
--- a/src/language.c
+++ b/src/language.c
@@ -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)",
diff --git a/src/mail.c b/src/mail.c
index 04b54cf49..408243cc4 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -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;
diff --git a/src/main.c b/src/main.c
index c848e6494..e2927b283 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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];