From 59d195148a72f4baae904952911a246c1b4eeac4 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sat, 26 May 2007 19:28:23 +0200 Subject: [PATCH] style Signed-off-by: Pierre Habouzit --- nntp/nntp.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nntp/nntp.c b/nntp/nntp.c index aad5bb2..7409044 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -1430,7 +1430,7 @@ int nntp_check_children (CONTEXT * ctx, const char *msgid) NNTP_DATA *nntp_data = (NNTP_DATA *) ctx->data; char buf[STRING]; int i, ret = 0, tmp = 0; - CHILD_CONTEXT cc; + CHILD_CONTEXT cc = { ctx, 0, 0, NULL }; if (!nntp_data || !nntp_data->nserv || !nntp_data->nserv->conn || !nntp_data->nserv->conn->account.host) @@ -1446,14 +1446,11 @@ int nntp_check_children (CONTEXT * ctx, const char *msgid) snprintf (buf, sizeof (buf), "XPAT References %d-%d *%s*\r\n", nntp_data->firstMessage, nntp_data->lastLoaded, msgid); - cc.ctx = ctx; - cc.num = 0; - cc.max = 25; - cc.child = p_new(int, 25); if (mutt_nntp_fetch (nntp_data, buf, NULL, NULL, check_children, &cc, 0)) { p_delete(&cc.child); return -1; } + /* dont try to read the xover cache. check_children() already * made sure that we dont have the article, so we need to visit * the server. Reading the cache at this point is also bad @@ -1476,8 +1473,8 @@ int nntp_check_children (CONTEXT * ctx, const char *msgid) } static int nntp_is_magic (const char* path, struct stat* st) { - url_scheme_t s = url_check_scheme (NONULL (path)); - return ((s == U_NNTP || s == U_NNTPS) ? M_NNTP : -1); + url_scheme_t s = url_check_scheme(NONULL(path)); + return s == U_NNTP || s == U_NNTPS ? M_NNTP : -1; } static int acl_check_nntp (CONTEXT* ctx, int bit) { -- 2.20.1