X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=1f9bd5b7c531c6b38d7b5584436c97e3caefbeb5;hb=9f66d0f5a23ad4fe8359006fa82abdc20737ddf1;hp=22b6cf393d2bfcb58a75f79e4ba51bb3b3618b35;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998;p=apps%2Fmadmutt.git diff --git a/nntp/newsrc.c b/nntp/newsrc.c index 22b6cf3..1f9bd5b 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -15,6 +15,7 @@ #include #include +#include #include #include "mutt.h" @@ -629,7 +630,7 @@ void newsrc_gen_entries (CONTEXT * ctx) } static int mutt_update_list_file (char *filename, char *section, - char *key, char *line) { + const char *key, char *line) { FILE *ifp; FILE *ofp; char buf[HUGE_STRING]; @@ -764,7 +765,7 @@ int mutt_newsrc_update (NNTP_SERVER * news) } /* newrc being fully rewritten */ if (news->newsrc && - (r = mutt_update_list_file (news->newsrc, NULL, "", buf)) == 0) { + (r = mutt_update_list_file(news->newsrc, NULL, "", buf)) == 0) { struct stat st; stat (news->newsrc, &st); @@ -796,8 +797,9 @@ static FILE *mutt_mkname (char *s) /* Updates info into .index file: ALL or about selected newsgroup */ static int nntp_update_cacheindex (NNTP_SERVER * serv, NNTP_DATA * data) { - char buf[LONG_STRING], *key = "ALL"; + char buf[LONG_STRING]; char file[_POSIX_PATH_MAX]; + const char *key = "ALL"; if (!serv || !serv->conn || !serv->conn->account.host) return -1;